Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-11-08 07:28:40 +0300
committerMike Erwin <significant.bit@gmail.com>2016-11-08 07:28:40 +0300
commit66d7f01eccdd9f82a4929f2873639e4012362090 (patch)
tree5190140c902f0bc629186ecc0c51f2cffbe1b627 /source/blender/gpu/gawain
parentde101fe9a874f616ac0eb27942e7956345dbab8e (diff)
Gawain: less error checking in release builds
Gawain does very strict runtime checking to help us catch coding errors. Final release should disable most of these checks, so I'm disabling now for all non-debug builds. When writing Blender code that uses Gawain, always make debug builds and test there! "make lite debug" is my favorite.
Diffstat (limited to 'source/blender/gpu/gawain')
-rw-r--r--source/blender/gpu/gawain/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/gawain/common.h b/source/blender/gpu/gawain/common.h
index 184c907967e..41ce8c22936 100644
--- a/source/blender/gpu/gawain/common.h
+++ b/source/blender/gpu/gawain/common.h
@@ -11,7 +11,7 @@
#pragma once
-#define TRUST_NO_ONE 1
+#define TRUST_NO_ONE defined(NDEBUG)
#include <GL/glew.h>
#include <stdbool.h>