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:
Diffstat (limited to 'source/blender/gpu/opengl/gl_debug.hh')
-rw-r--r--source/blender/gpu/opengl/gl_debug.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_debug.hh b/source/blender/gpu/opengl/gl_debug.hh
index 47c9558f13a..dd98505ebc1 100644
--- a/source/blender/gpu/opengl/gl_debug.hh
+++ b/source/blender/gpu/opengl/gl_debug.hh
@@ -31,7 +31,14 @@ namespace debug {
# define GL_CHECK_ERROR(info)
#endif
+#ifdef DEBUG
+# define GL_CHECK_RESOURCES(info) debug::check_gl_resources(info)
+#else
+# define GL_CHECK_RESOURCES(info)
+#endif
+
void check_gl_error(const char *info);
+void check_gl_resources(const char *info);
void init_gl_callbacks(void);
} // namespace debug