don't clamp color values; slow and seems unneeded

(be nice if we didn't have to convert it, either, but there's no
GL_T2F_C4F_V3F)
This commit is contained in:
Glenn Maynard
2002-11-12 20:38:14 +00:00
parent 78fb452cd3
commit 47a8fcb1a2
+1 -1
View File
@@ -159,7 +159,7 @@ public:
};
/* Convert floating-point 0..1 value to integer 0..255 value. */
inline unsigned char FTOC(float a) { return (unsigned char)(max(min(a, 1.f), 0.f) * 255.f); }
inline unsigned char FTOC(float a) { return (unsigned char)(a * 255.f); }
/* Color type used only in vertex lists. OpenGL expects colors in
* r, g, b, a order, independent of endianness, so storing them this