Skip to content

Commit 69dba70

Browse files
committed
Fix crash when using glObjectLabel
Apparently OpenGL contexts aren't supposed to expose the KHR variant so this version should work better if the extension is supported.
1 parent f50be50 commit 69dba70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/graphics/opengl/gropengl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,7 @@ void gr_opengl_pop_debug_group() {
16581658
}
16591659
void opengl_set_object_label(GLenum type, GLuint handle, const SCP_string& name) {
16601660
if (GLAD_GL_KHR_debug) {
1661-
glObjectLabelKHR(type, handle, (GLsizei) name.size(), name.c_str());
1661+
glObjectLabel(type, handle, (GLsizei) name.size(), name.c_str());
16621662
}
16631663
}
16641664

0 commit comments

Comments
 (0)