mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-27 05:35:13 +00:00
Use opengl32 instead of gdi32 throughout
Since we are dynamically loading opengl32.dll, we are supposed to use the wgl version of functions that exist in both opengl32 and gdi32 dlls.
This commit is contained in:
parent
9c2db338e9
commit
9129e62343
|
@ -389,13 +389,13 @@ namespace OpenTK.Platform.Windows
|
|||
}
|
||||
|
||||
PixelFormatDescriptor pfd = new PixelFormatDescriptor();
|
||||
Functions.DescribePixelFormat(
|
||||
Wgl.DescribePixelFormat(
|
||||
window.DeviceContext, (int)mode.Index.Value,
|
||||
API.PixelFormatDescriptorSize, ref pfd);
|
||||
|
||||
Debug.WriteLine(mode.Index.ToString());
|
||||
|
||||
if (!Functions.SetPixelFormat(window.DeviceContext, (int)mode.Index.Value, ref pfd))
|
||||
if (!Wgl.SetPixelFormat(window.DeviceContext, (int)mode.Index.Value, ref pfd))
|
||||
{
|
||||
throw new GraphicsContextException(String.Format(
|
||||
"Requested GraphicsMode not available. SetPixelFormat error: {0}",
|
||||
|
|
Loading…
Reference in a new issue