OpenGL2: Fix bug in ColorToRGBM().
This commit is contained in:
1 parent
79e9baedf8
commit
7a23bb1c59
1 file changed
+2
@@ -165,6 +165,8 @@ void ColorToRGBM(const vec3_t color, unsigned char rgbm[4])
|
||||
vec3_t sample;
|
||||
float maxComponent;
|
||||
|
||||
VectorCopy(color, sample);
|
||||
|
||||
maxComponent = MAX(sample[0], sample[1]);
|
||||
maxComponent = MAX(maxComponent, sample[2]);
|
||||
maxComponent = CLAMP(maxComponent, 1.0f/255.0f, 1.0f);
|
||||
|
||||
Reference in new issue
Block a user