RGBA textures can be made monochrome also

This commit is contained in:
ehofman
2005-01-14 10:12:00 +00:00
parent e62a4a05ac
commit 7a3a81c152

View 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];