Fix build
This commit is contained in:
parent
a81adfff41
commit
07ee33b777
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue