From 07ee33b77722e4d22a032fc1af9e9534e900a1c7 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 1 Jun 2024 08:21:30 -0700 Subject: [PATCH] Fix build --- src/BizHawk.Bizware.Graphics/D3D11/D3D11GLInterop.cs | 2 +- src/BizHawk.Bizware.Graphics/OpenGL/OpenGLVersion.cs | 2 +- src/BizHawk.Client.EmuHawk/Program.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BizHawk.Bizware.Graphics/D3D11/D3D11GLInterop.cs b/src/BizHawk.Bizware.Graphics/D3D11/D3D11GLInterop.cs index 71c5e569f19..e05086cdb38 100644 --- a/src/BizHawk.Bizware.Graphics/D3D11/D3D11GLInterop.cs +++ b/src/BizHawk.Bizware.Graphics/D3D11/D3D11GLInterop.cs @@ -48,7 +48,7 @@ static D3D11GLInterop() // All rendering contexts of a given pixel format share the same extension function addresses." var (majorVersion, minorVersion) = OpenGLVersion.SupportsVersion(4, 3) ? (4, 3) : (2, 1); - using var glContext = new SDL2OpenGLContext(majorVersion, minorVersion, true, false); + using var glContext = new SDL2OpenGLContext(majorVersion, minorVersion, true); GL = GL.GetApi(GetGLProcAddress); if (GL.CurrentVTable.Load("glCopyImageSubData") == IntPtr.Zero diff --git a/src/BizHawk.Bizware.Graphics/OpenGL/OpenGLVersion.cs b/src/BizHawk.Bizware.Graphics/OpenGL/OpenGLVersion.cs index f42a8e95b21..d9a0b14a17b 100644 --- a/src/BizHawk.Bizware.Graphics/OpenGL/OpenGLVersion.cs +++ b/src/BizHawk.Bizware.Graphics/OpenGL/OpenGLVersion.cs @@ -22,7 +22,7 @@ private static bool CheckVersion(int requestedMajor, int requestedMinor) { try { - using (new SDL2OpenGLContext(requestedMajor, requestedMinor, true, false)) + using (new SDL2OpenGLContext(requestedMajor, requestedMinor, true)) { using var gl = GL.GetApi(SDL2OpenGLContext.GetGLProcAddress); var versionString = gl.GetStringS(StringName.Version); diff --git a/src/BizHawk.Client.EmuHawk/Program.cs b/src/BizHawk.Client.EmuHawk/Program.cs index 1ad418781fe..35bd84e55b1 100644 --- a/src/BizHawk.Client.EmuHawk/Program.cs +++ b/src/BizHawk.Client.EmuHawk/Program.cs @@ -252,7 +252,7 @@ IGL CheckRenderer(IGL gl) return TryInitIGL(initialConfig.DispMethod = method); } // need to have a context active for checking renderer, will be disposed afterwards - using (new SDL2OpenGLContext(3, 2, true, false)) + using (new SDL2OpenGLContext(3, 2, true)) { using var testIgl = new IGL_OpenGL(); _ = CheckRenderer(testIgl);