From: Marta Lofstedt Date: Thu, 13 Aug 2015 10:59:40 +0000 (+0200) Subject: mesa: AtomicBufferBindings should be initialized to zero. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd9d2963d6;p=mesa.git 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 Reviewed-by: Erik Faye-Lund --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 1cdea937f91..e17b41ce55c 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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; } }