diff options
Diffstat (limited to 'source/blender/gpu/opengl/gl_debug.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_debug.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_debug.hh b/source/blender/gpu/opengl/gl_debug.hh index 892fb1d2ddb..3964e5da550 100644 --- a/source/blender/gpu/opengl/gl_debug.hh +++ b/source/blender/gpu/opengl/gl_debug.hh @@ -88,8 +88,16 @@ namespace debug { void raise_gl_error(const char *info); void check_gl_error(const char *info); void check_gl_resources(const char *info); +/** + * This function needs to be called once per context. + */ void init_gl_callbacks(void); +/** + * Initialize a fallback layer (to KHR_debug) that covers only some functions. + * We override the functions pointers by our own implementation that just checks #glGetError. + * Some additional functions (not overridable) are covered inside the header using wrappers. + */ void init_debug_layer(void); void object_label(GLenum type, GLuint object, const char *name); |