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.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/gpu/opengl/gl_debug.hh b/source/blender/gpu/opengl/gl_debug.hh
index 8369a46f0e9..892fb1d2ddb 100644
--- a/source/blender/gpu/opengl/gl_debug.hh
+++ b/source/blender/gpu/opengl/gl_debug.hh
@@ -24,10 +24,6 @@
#include "glew-mx.h"
-namespace blender {
-namespace gpu {
-namespace debug {
-
/* Manual line breaks for readability. */
/* clang-format off */
#define _VA_ARG_LIST1(t) t
@@ -85,6 +81,10 @@ namespace debug {
# define GL_CHECK_RESOURCES(info)
#endif
+namespace blender {
+namespace gpu {
+namespace debug {
+
void raise_gl_error(const char *info);
void check_gl_error(const char *info);
void check_gl_resources(const char *info);
@@ -92,6 +92,8 @@ void init_gl_callbacks(void);
void init_debug_layer(void);
+void object_label(GLenum type, GLuint object, const char *name);
+
} // namespace debug
#define DEBUG_FUNC_OVERRIDE(func, ...) \