Fix build

This commit is contained in:
CasualPokePlayer 2024-06-01 08:21:30 -07:00
parent a81adfff41
commit 07ee33b777
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ namespace BizHawk.Bizware.Graphics
// 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

View File

@ -22,7 +22,7 @@ namespace BizHawk.Bizware.Graphics
{
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);

View File

@ -252,7 +252,7 @@ namespace BizHawk.Client.EmuHawk
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);