mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Cleanup OpenGL hacks
This commit is contained in:
parent
d8bd34b57e
commit
2926d3805c
@ -604,14 +604,7 @@ void GLGSRender::OnInitThread()
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
||||
#if defined(__GNUG__) // Hack. Should detect xorg instead
|
||||
#if 0
|
||||
if (GLXDrawable drawable = glXGetCurrentDrawable())
|
||||
glXSwapIntervalEXT(glXGetCurrentDisplay(), drawable, Ini.GSVSyncEnable.GetValue() ? 1 : 0);
|
||||
#endif
|
||||
#else
|
||||
glSwapInterval(Ini.GSVSyncEnable.GetValue() ? 1 : 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void GLGSRender::OnExitThread()
|
||||
|
@ -3,13 +3,11 @@
|
||||
|
||||
void InitProcTable()
|
||||
{
|
||||
#if 0
|
||||
#define OPENGL_PROC(p, n) OPENGL_PROC2(p, n, gl##n)
|
||||
#define OPENGL_PROC2(p, n, tn) /*if(!gl##n)*/ if(!(gl##n = (p)wglGetProcAddress(#tn))) ConLog.Error("OpenGL: initialization of " #tn " failed.")
|
||||
#include "GLProcTable.tbl"
|
||||
#undef OPENGL_PROC
|
||||
#undef OPENGL_PROC2
|
||||
#endif
|
||||
}
|
||||
|
||||
#define OPENGL_PROC(p, n) p gl##n = nullptr
|
||||
@ -31,13 +29,11 @@ OpenGL::~OpenGL()
|
||||
|
||||
void OpenGL::Init()
|
||||
{
|
||||
#if 0
|
||||
#define OPENGL_PROC(p, n) OPENGL_PROC2(p, n, gl##n)
|
||||
#define OPENGL_PROC2(p, n, tn) if(!(n = (p)wglGetProcAddress(#tn))) ConLog.Error("OpenGL: initialization of " #tn " failed.")
|
||||
#include "GLProcTable.tbl"
|
||||
#undef OPENGL_PROC
|
||||
#undef OPENGL_PROC2
|
||||
#endif
|
||||
}
|
||||
|
||||
void OpenGL::Close()
|
||||
|
@ -2,13 +2,7 @@
|
||||
#include <GL/gl.h>
|
||||
#include "GL/glext.h"
|
||||
|
||||
#ifdef __GNUG__ // HACK: detect xorg
|
||||
#define GLX_GLXEXT_PROTOTYPES
|
||||
//#include <X11/Xlib.h>
|
||||
//#include <GL/glxext.h>
|
||||
#else
|
||||
typedef BOOL (WINAPI* PFNWGLSWAPINTERVALEXTPROC) (int interval);
|
||||
#endif
|
||||
|
||||
#define OPENGL_PROC(p, n) extern p gl##n
|
||||
#define OPENGL_PROC2(p, n, tn) OPENGL_PROC(p, n)
|
||||
|
Loading…
Reference in New Issue
Block a user