mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 08:26:44 +00:00
Fixed a struct != null comparison.
This commit is contained in:
parent
c89abaee72
commit
65f2b432d8
|
@ -292,7 +292,7 @@ namespace OpenTK.Platform.Windows
|
||||||
pixelFormat.BlueBits = (byte)format.ColorFormat.Blue;
|
pixelFormat.BlueBits = (byte)format.ColorFormat.Blue;
|
||||||
pixelFormat.AlphaBits = (byte)format.ColorFormat.Alpha;
|
pixelFormat.AlphaBits = (byte)format.ColorFormat.Alpha;
|
||||||
|
|
||||||
if (format.AccumulatorFormat != null)
|
if (format.AccumulatorFormat.BitsPerPixel > 0)
|
||||||
{
|
{
|
||||||
pixelFormat.AccumBits = (byte)(format.AccumulatorFormat.Red + format.AccumulatorFormat.Green + format.AccumulatorFormat.Blue);
|
pixelFormat.AccumBits = (byte)(format.AccumulatorFormat.Red + format.AccumulatorFormat.Green + format.AccumulatorFormat.Blue);
|
||||||
pixelFormat.AccumRedBits = (byte)format.AccumulatorFormat.Red;
|
pixelFormat.AccumRedBits = (byte)format.AccumulatorFormat.Red;
|
||||||
|
|
Loading…
Reference in a new issue