mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 06:50:11 +01:00
mesa: AtomicBufferBindings should be initialized to zero.
According to OpenGL specification version 4.5 table 23.46 and OpenGL ES specification version 3.1 table 20.31: ATOMIC_COUNTER_BUFFER_START and ATOMIC_COUNTER_BUFFER_SIZE should have the initial value of zero. Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
This commit is contained in:
parent
a7e6f8cc9f
commit
dd9d2963d6
1 changed files with 2 additions and 2 deletions
|
|
@ -866,8 +866,8 @@ _mesa_init_buffer_objects( struct gl_context *ctx )
|
|||
_mesa_reference_buffer_object(ctx,
|
||||
&ctx->AtomicBufferBindings[i].BufferObject,
|
||||
ctx->Shared->NullBufferObj);
|
||||
ctx->AtomicBufferBindings[i].Offset = -1;
|
||||
ctx->AtomicBufferBindings[i].Size = -1;
|
||||
ctx->AtomicBufferBindings[i].Offset = 0;
|
||||
ctx->AtomicBufferBindings[i].Size = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue