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."
|
// 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);
|
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);
|
GL = GL.GetApi(GetGLProcAddress);
|
||||||
if (GL.CurrentVTable.Load("glCopyImageSubData") == IntPtr.Zero
|
if (GL.CurrentVTable.Load("glCopyImageSubData") == IntPtr.Zero
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace BizHawk.Bizware.Graphics
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (new SDL2OpenGLContext(requestedMajor, requestedMinor, true, false))
|
using (new SDL2OpenGLContext(requestedMajor, requestedMinor, true))
|
||||||
{
|
{
|
||||||
using var gl = GL.GetApi(SDL2OpenGLContext.GetGLProcAddress);
|
using var gl = GL.GetApi(SDL2OpenGLContext.GetGLProcAddress);
|
||||||
var versionString = gl.GetStringS(StringName.Version);
|
var versionString = gl.GetStringS(StringName.Version);
|
||||||
|
|
|
@ -252,7 +252,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return TryInitIGL(initialConfig.DispMethod = method);
|
return TryInitIGL(initialConfig.DispMethod = method);
|
||||||
}
|
}
|
||||||
// need to have a context active for checking renderer, will be disposed afterwards
|
// 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();
|
using var testIgl = new IGL_OpenGL();
|
||||||
_ = CheckRenderer(testIgl);
|
_ = CheckRenderer(testIgl);
|
||||||
|
|
Loading…
Reference in New Issue