Philipp Klaus Krause wrote:
Brian Paul wrote:


OK, I guess I assumed color index mode.  If you're using GL_INDEX_OFFSET
in RGB mode, that means you're using glPixelMap() to convert the color
indexes in your image to RGB.

Is that correct?

-Brian


Yes.

        glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
        glPixelTransferi(GL_MAP_COLOR, GL_TRUE);
        glPixelMapfv(GL_PIXEL_MAP_I_TO_R, 32, color_memory[0]);
        glPixelMapfv(GL_PIXEL_MAP_I_TO_G, 32, color_memory[1]);
        glPixelMapfv(GL_PIXEL_MAP_I_TO_B, 32, color_memory[2]);
        glPixelMapfv(GL_PIXEL_MAP_I_TO_A, 32, color_memory[3]);

OK, I've fixed this in CVS.  You can grab the updated file from
http://webcvs.freedesktop.org/mesa/Mesa/src/mesa/swrast/s_drawpix.c if you want.

-Brian


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to