Remove GlobalWin.CR_GL because it wasn't being used
This commit is contained in:
parent
0796c14046
commit
28f9d0ee0d
|
@ -13,8 +13,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
/// </summary>
|
||||
public static IGL GL;
|
||||
|
||||
public static GLManager.ContextRef CR_GL;
|
||||
|
||||
/// <summary>
|
||||
/// The IGL_TK to be used for specifically opengl operations (accessing textures from opengl-based cores)
|
||||
/// </summary>
|
||||
|
|
|
@ -137,7 +137,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
// setup the GL context manager, needed for coping with multiple opengl cores vs opengl display method
|
||||
GLManager.CreateInstance(GlobalWin.IGL_GL);
|
||||
GlobalWin.GLManager = GLManager.Instance;
|
||||
GlobalWin.CR_GL = GlobalWin.GLManager.GetContextForIGL(GlobalWin.GL);
|
||||
|
||||
//now create the "GL" context for the display method. we can reuse the IGL_TK context if opengl display method is chosen
|
||||
REDO_DISPMETHOD:
|
||||
|
@ -153,6 +152,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
var e2 = new Exception("Initialization of Direct3d 9 Display Method failed; falling back to GDI+", ex);
|
||||
new ExceptionBox(e2).ShowDialog();
|
||||
|
||||
// fallback
|
||||
Global.Config.DispMethod = Config.EDispMethod.GdiPlus;
|
||||
goto REDO_DISPMETHOD;
|
||||
|
@ -161,6 +161,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
else
|
||||
{
|
||||
GlobalWin.GL = GlobalWin.IGL_GL;
|
||||
|
||||
// check the opengl version and dont even try to boot this crap up if its too old
|
||||
int version = GlobalWin.IGL_GL.Version;
|
||||
if (version < 200)
|
||||
|
|
Loading…
Reference in New Issue