Do not set the "indexed" flag for 0 bpp.
This commit is contained in:
parent
304c90a3ff
commit
37d9cdd878
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue