summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-02-06 15:23:05 -0800
committerFredrik Höglund <fredrik@kde.org>2015-05-14 15:48:15 +0200
commit7518c6b5b2ae8b2a6e931d4be1d5976d553983a0 (patch)
tree2ba39c63774a27fa76cf1ad8fc2f4b8d50803ee7 /src/mesa/main/context.c
parent642fb71277b6e4c5d57ad7a7d6f2d5aae9b746ef (diff)
downloadexternal_mesa3d-7518c6b5b2ae8b2a6e931d4be1d5976d553983a0.zip
external_mesa3d-7518c6b5b2ae8b2a6e931d4be1d5976d553983a0.tar.gz
external_mesa3d-7518c6b5b2ae8b2a6e931d4be1d5976d553983a0.tar.bz2
main: Refactor _mesa_ReadBuffer.
This could have added a new DD table entry for ReadBuffer that takes an arbitrary read buffer, but, after looking at the existing DD functions, Kenneth Graunke recommended that we just skip calling the DD functions in the case of ARB_direct_state_access. The DD implementations for ReadBuffer have limited functionality, especially with respect to ARB_direct_state_access. [Fredrik: Call the driver function when fb is the bound read buffer] Reviewed-by: Fredrik Höglund <fredrik@kde.org> Signed-off-by: Fredrik Höglund <fredrik@kde.org>
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 279716a..544cc14 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1579,7 +1579,7 @@ handle_first_current(struct gl_context *ctx)
bufferIndex = BUFFER_FRONT_LEFT;
}
- _mesa_readbuffer(ctx, buffer, bufferIndex);
+ _mesa_readbuffer(ctx, ctx->ReadBuffer, buffer, bufferIndex);
}
}