]> git.mxchange.org Git - simgear.git/commitdiff
RGBA textures can be made monochrome also
authorehofman <ehofman>
Fri, 14 Jan 2005 10:12:00 +0000 (10:12 +0000)
committerehofman <ehofman>
Fri, 14 Jan 2005 10:12:00 +0000 (10:12 +0000)
simgear/screen/texture.cxx

index 4854a2c3f3686853c511d8dfabd73a78b5656bc5..592f0997f9ded98f04e11b3ea4f7d7cc89ddde36 100644 (file)
@@ -796,7 +796,7 @@ SGTexture::ConvertUint(unsigned *array, unsigned int length) {
 void
 SGTexture::make_monochrome(GLubyte r, GLubyte g, GLubyte b) {
 
-   if (num_colors != 3)
+   if (num_colors >= 3)
       return;
 
    GLubyte ap[3];