Mesa (master): mesa: Don't set dispatch pointer for glPointSize in ES2

Ian Romanick idr at kemper.freedesktop.org
Fri Sep 28 16:11:49 UTC 2012


Module: Mesa
Branch: master
Commit: aa129b0833052f613a6ec570aef092733769ee0e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa129b0833052f613a6ec570aef092733769ee0e

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Sep  5 08:16:23 2012 -0700

mesa: Don't set dispatch pointer for glPointSize 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, 1 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
index 1da0415..caa148c 100644
--- a/src/mesa/main/api_exec.c
+++ b/src/mesa/main/api_exec.c
@@ -259,11 +259,9 @@ _mesa_create_exec_table(struct gl_context *ctx)
 
    if (ctx->API != API_OPENGLES2) {
       SET_PixelStoref(exec, _mesa_PixelStoref);
-   }
 
-   SET_PointSize(exec, _mesa_PointSize);
+      SET_PointSize(exec, _mesa_PointSize);
 
-   if (ctx->API != API_OPENGLES2) {
       SET_PolygonMode(exec, _mesa_PolygonMode);
    }
 




More information about the mesa-commit mailing list