summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-02-23 13:24:11 -0700
committerBrian Paul <brianp@vmware.com>2016-02-24 08:31:28 -0700
commitc8fdb42c9138a1b510b4cbf768832a09f6398f96 (patch)
treeeb232a43349aefe0676a159a69ad920a5685ebcf /src/mesa/main/context.c
parent363019e17a4d5b967ca973d2927a6d2d7a67514f (diff)
downloadexternal_mesa3d-c8fdb42c9138a1b510b4cbf768832a09f6398f96.zip
external_mesa3d-c8fdb42c9138a1b510b4cbf768832a09f6398f96.tar.gz
external_mesa3d-c8fdb42c9138a1b510b4cbf768832a09f6398f96.tar.bz2
mesa: use gl_buffer_index in a few places
Reviewed-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 9388a1c..a6d8939 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;