projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1b8e5
)
mesa: update new state for RasterPos like other operations.
author
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 11 Nov 2008 05:16:20 +0000
(13:16 +0800)
committer
Xiang, 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/rastpos.c
b/src/mesa/main/rastpos.c
index 155140f3cccfbae7026600fbc51f81798b692cf9..9842172f460074ff4a3a916f305c836b1992000e 100644
(file)
--- 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);
}