glgsg: fix error with glObjectLabel and SSBO

This commit is contained in:
rdb 2018-07-17 22:59:23 +02:00
parent b5194d9ff2
commit 359ce3e9ef

View File

@ -6401,7 +6401,7 @@ prepare_shader_buffer(ShaderBuffer *data) {
if (_use_object_labels) {
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.