Browse Source

glgsg: fix error with glObjectLabel and SSBO

rdb 7 years ago
parent
commit
359ce3e9ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -6401,7 +6401,7 @@ prepare_shader_buffer(ShaderBuffer *data) {
 
 
     if (_use_object_labels) {
     if (_use_object_labels) {
       string name = data->get_name();
       string name = data->get_name();
-      _glObjectLabel(GL_SHADER_STORAGE_BUFFER, gbc->_index, name.size(), name.data());
+      _glObjectLabel(GL_BUFFER, gbc->_index, name.size(), name.data());
     }
     }
 
 
     // Some drivers require the buffer to be padded to 16 byte boundary.
     // Some drivers require the buffer to be padded to 16 byte boundary.