Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Jun 1, 2024
1 parent a81adff commit 07ee33b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BizHawk.Bizware.Graphics/D3D11/D3D11GLInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/BizHawk.Bizware.Graphics/OpenGL/OpenGLVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/BizHawk.Client.EmuHawk/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07ee33b

Please sign in to comment.