mesa: update new state for RasterPos like other operations.
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 11 Nov 2008 05:16:20 +0000 (13:16 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 11 Nov 2008 05:35:51 +0000 (13:35 +0800)
This fixes a lighting issue when drawing a bitmap.

src/mesa/main/rastpos.c

index 155140f3cccfbae7026600fbc51f81798b692cf9..9842172f460074ff4a3a916f305c836b1992000e 100644 (file)
@@ -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);
 }