Mesa (master): mesa: update new state for RasterPos like other operations.

Haihao Xiang haihao at kemper.freedesktop.org
Tue Nov 11 06:02:43 UTC 2008


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

Author: Xiang, Haihao <haihao.xiang at intel.com>
Date:   Tue Nov 11 13:16:20 2008 +0800

mesa: update new state for RasterPos like other operations.

This fixes a lighting issue when drawing a bitmap.

---

 src/mesa/main/rastpos.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index 155140f..9842172 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -50,12 +50,12 @@ rasterpos(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
    p[2] = z;
    p[3] = w;
 
-   if (ctx->NewState)
-      _mesa_update_state( ctx );
-
    ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
    FLUSH_CURRENT(ctx, 0);
 
+   if (ctx->NewState)
+      _mesa_update_state( ctx );
+
    ctx->Driver.RasterPos(ctx, p);
 }
 




More information about the mesa-commit mailing list