Redefine the BYTE_TO_FLOAT() and SHORT_TO_FLOAT() macros to avoid problems
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 10 Sep 2006 17:42:57 +0000 (17:42 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 10 Sep 2006 17:42:57 +0000 (17:42 +0000)
commitcb535550588852175f22fd17ad080bc213021881
treebaa49c7784e4fd0016ae67be368a59b8ff4a1ec6
parentef8244df1a195f227b1cdf2f944b7fd7a9917adf
Redefine the BYTE_TO_FLOAT() and SHORT_TO_FLOAT() macros to avoid problems
converting 0 to exactly 0.0
This goes against the OpenGL spec (see table 2.6) but solves problems
when doing byte -> float -> ubyte conversion for particular texture formats.
src/mesa/main/image.c