diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2008-11-11 13:16:20 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2008-11-11 13:35:51 +0800 |
commit | 064b04d464e006e76e888b481900b3f63f015063 (patch) | |
tree | 8ec553a27d7ed6851e97a3ec7bb7b4166b6460e7 /src | |
parent | be1b8e5d6c6692010a3ec117035d9b218929e2b3 (diff) |
mesa: update new state for RasterPos like other operations.
This fixes a lighting issue when drawing a bitmap.
Diffstat (limited to 'src')
-rw-r--r-- | 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 155140f3cc..9842172f46 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); } |