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 42ae25022c
commit 9ba8566b39

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;
}