Skip to content

Commit 6efceb2

Browse files
authored
Merge pull request #1188 from asarium/fix/objectLabelCrash
Fix crash when using glObjectLabel
2 parents f50be50 + 69dba70 commit 6efceb2

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)