mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-12 13:40:38 +01:00
mesa: Implement _mesa_DeleteBuffers for target GL_SHADER_STORAGE_BUFFER
v2: - Remove the extra spaces (Jordan) Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
98a1a2c730
commit
e72f5ef502
1 changed files with 11 additions and 0 deletions
|
|
@ -1264,6 +1264,17 @@ _mesa_DeleteBuffers(GLsizei n, const GLuint *ids)
|
|||
_mesa_BindBuffer( GL_UNIFORM_BUFFER, 0 );
|
||||
}
|
||||
|
||||
/* unbind SSBO binding points */
|
||||
for (j = 0; j < ctx->Const.MaxShaderStorageBufferBindings; j++) {
|
||||
if (ctx->ShaderStorageBufferBindings[j].BufferObject == bufObj) {
|
||||
_mesa_BindBufferBase(GL_SHADER_STORAGE_BUFFER, j, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (ctx->ShaderStorageBuffer == bufObj) {
|
||||
_mesa_BindBuffer(GL_SHADER_STORAGE_BUFFER, 0);
|
||||
}
|
||||
|
||||
/* unbind Atomci Buffer binding points */
|
||||
for (j = 0; j < ctx->Const.MaxAtomicBufferBindings; j++) {
|
||||
if (ctx->AtomicBufferBindings[j].BufferObject == bufObj) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue