Hi,

here is a bugfix for DrawPixel:

When depth test is disabled but fog enabled, the z-span for "gl_fog_rgba_span"
is uninitialized.

[Bug found with Flightgears panel & GLX-MGA - I don't know if FlightGear
 really wants a fogged panel but that's their bug ;-)]

Andree


Index: drawpix.c
===================================================================
RCS file: /cvs/mesa3d/Mesa/src/drawpix.c,v
retrieving revision 1.5
diff -u -w -r1.5 drawpix.c
--- drawpix.c   1999/11/08 07:36:44     1.5
+++ drawpix.c   1999/11/26 13:03:45
@@ -741,7 +741,7 @@
    height = image->Height;

    /* Fragment depth values */
-   if (ctx->Depth.Test) {
+   if (ctx->Depth.Test || ctx->Fog.Enabled) {
       /* fill in array of z values */
       GLdepth z = (GLdepth) (ctx->Current.RasterPos[2] * DEPTH_SCALE);
       for (i=0;i<width;i++) {




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

Reply via email to