mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:25:28 +00:00
Do not set the "indexed" flag for 0 bpp.
This commit is contained in:
parent
42ae25022c
commit
9ba8566b39
|
@ -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