From 7a3a81c1528ab89d7b97030dd51281439e5a2d47 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 14 Jan 2005 10:12:00 +0000 Subject: [PATCH] RGBA textures can be made monochrome also --- simgear/screen/texture.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5