Do not set the "indexed" flag for 0 bpp.

This commit is contained in:
the_fiddler 2009-06-01 11:04:10 +00:00
parent 304c90a3ff
commit 37d9cdd878

View file

@ -90,7 +90,7 @@ namespace OpenTK.Graphics
this.alpha = (byte)alpha;
this.bitsPerPixel = red + green + blue + alpha;
this.isIndexed = false;
if (this.bitsPerPixel < 15)
if (this.bitsPerPixel < 15 && this.bitsPerPixel != 0)
this.isIndexed = true;
}