diff options
Diffstat (limited to 'source/blender/gpu/opengl/gl_immediate.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_immediate.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/opengl/gl_immediate.cc b/source/blender/gpu/opengl/gl_immediate.cc index 26b1df88b64..7afbbf9965c 100644 --- a/source/blender/gpu/opengl/gl_immediate.cc +++ b/source/blender/gpu/opengl/gl_immediate.cc @@ -60,13 +60,11 @@ GLImmediate::GLImmediate() glBindBuffer(GL_ARRAY_BUFFER, 0); glBindVertexArray(0); -#ifndef __APPLE__ - if ((G.debug & G_DEBUG_GPU) && (GLEW_VERSION_4_3 || GLEW_KHR_debug)) { + if (GLContext::debug_layer_support) { glObjectLabel(GL_VERTEX_ARRAY, vao_id_, -1, "VAO-Immediate"); glObjectLabel(GL_BUFFER, buffer.vbo_id, -1, "VBO-ImmediateBuffer"); glObjectLabel(GL_BUFFER, buffer_strict.vbo_id, -1, "VBO-ImmediateBufferStrict"); } -#endif } GLImmediate::~GLImmediate() |