From: ehofman Date: Fri, 14 Jan 2005 10:12:00 +0000 (+0000) Subject: RGBA textures can be made monochrome also X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a3a81c1528ab89d7b97030dd51281439e5a2d47;p=simgear.git RGBA textures can be made monochrome also --- diff --git a/simgear/screen/texture.cxx b/simgear/screen/texture.cxx index 4854a2c3..592f0997 100644 --- a/simgear/screen/texture.cxx +++ b/simgear/screen/texture.cxx @@ -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];