On 04-Nov-99 [EMAIL PROTECTED] wrote:
> for some time i thought this was a bug in the glx-mga driver, but its the
> same with X11-sw and 3dfx:
> 
> http://www.tu-bs.de/~y0000980/q2water.jpg
> (taken from "quake2 +map q2dm1")
> 
> The water is supposed to be blue like the small triangle i have marked.

I finally found the reason for this: Changing between GL_REPLACE & GL_MODULATE
changes the need of VERT_RGBA in the vertexbuffer.

The "raster setup" stages of the pipeline need to be triggered on
"NEW_TEXTURE_ENV" also.

This probably needs to be fixed in driver specific pipeline stages also.
Or may be set also "NEW_RASTER_OPS" in gl_TexEnvfv on changes?

Index: stages.c
===================================================================
RCS file: /cvs/mesa3d/Mesa/src/stages.c,v
retrieving revision 1.13.2.1
diff -u -r1.13.2.1 stages.c
--- stages.c    1999/11/25 16:51:25     1.13.2.1
+++ stages.c    1999/12/02 22:17:01
@@ -788,8 +788,8 @@
      PIPE_OP_RAST_SETUP_0|PIPE_OP_RAST_SETUP_1,
      PIPE_PRECALC|PIPE_IMMEDIATE,
      0,
-     NEW_LIGHTING|NEW_TEXTURING|NEW_RASTER_OPS|NEW_POLYGON,
-     NEW_LIGHTING|NEW_TEXTURING|NEW_RASTER_OPS|NEW_POLYGON,
+     NEW_LIGHTING|NEW_TEXTURING|NEW_RASTER_OPS|NEW_POLYGON|NEW_TEXTURE_ENV,
+     NEW_LIGHTING|NEW_TEXTURING|NEW_RASTER_OPS|NEW_POLYGON|NEW_TEXTURE_ENV,
      0, 0,
      DYN_STATE,



_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to