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:
authorClément Foucault <foucault.clem@gmail.com>2020-09-09 01:23:48 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-09 01:28:19 +0300
commitf7fab77f85734e49414ea7d063532dbac6c5b6da (patch)
tree0b43450ad7bb210f0a07b1446228df3d956cab6f /source/blender/gpu/opengl/gl_immediate.cc
parent25380802d702e65bc232efb5cd7768d6ace165d4 (diff)
Cleanup: GPU: Replace multiple checks by GLContext::debug_layer_support
Diffstat (limited to 'source/blender/gpu/opengl/gl_immediate.cc')
-rw-r--r--source/blender/gpu/opengl/gl_immediate.cc4
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()