Mesa (master): mesa: Don't set dispatch pointer for glGetDoublev in ES2
Ian Romanick
idr at kemper.freedesktop.org
Fri Sep 28 16:11:49 UTC 2012
Module: Mesa
Branch: master
Commit: 850412b8ab272b9616da9a0df29e424b07bddde9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=850412b8ab272b9616da9a0df29e424b07bddde9
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Wed Sep 5 08:21:04 2012 -0700
mesa: Don't set dispatch pointer for glGetDoublev in ES2
NOTE: This is a candidate for the 9.0 branch
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/main/api_exec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
index caa148c..d9c473c 100644
--- a/src/mesa/main/api_exec.c
+++ b/src/mesa/main/api_exec.c
@@ -214,7 +214,9 @@ _mesa_create_exec_table(struct gl_context *ctx)
SET_GetClipPlane(exec, _mesa_GetClipPlane);
}
SET_GetBooleanv(exec, _mesa_GetBooleanv);
- SET_GetDoublev(exec, _mesa_GetDoublev);
+ if (ctx->API != API_OPENGLES2) {
+ SET_GetDoublev(exec, _mesa_GetDoublev);
+ }
SET_GetIntegerv(exec, _mesa_GetIntegerv);
if (ctx->API != API_OPENGL_CORE && ctx->API != API_OPENGLES2) {
SET_GetLightfv(exec, _mesa_GetLightfv);
More information about the mesa-commit
mailing list