From c8fdb42c9138a1b510b4cbf768832a09f6398f96 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 23 Feb 2016 13:24:11 -0700 Subject: mesa: use gl_buffer_index in a few places Reviewed-by: Rob Clark Reviewed-by: Roland Scheidegger --- src/mesa/main/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 9388a1ca51d..a6d89394b39 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1601,7 +1601,6 @@ static void handle_first_current(struct gl_context *ctx) { GLenum buffer; - GLint bufferIndex; if (ctx->Version == 0) { /* probably in the process of tearing down the context */ @@ -1627,6 +1626,7 @@ handle_first_current(struct gl_context *ctx) } if (ctx->ReadBuffer != _mesa_get_incomplete_framebuffer()) { + gl_buffer_index bufferIndex; if (ctx->ReadBuffer->Visual.doubleBufferMode) { buffer = GL_BACK; bufferIndex = BUFFER_BACK_LEFT; -- cgit v1.2.3