mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: remove useless glx/egl context print
This commit is contained in:
parent
9fa053cd88
commit
e91194994f
|
@ -116,12 +116,6 @@ void GSWndEGL::DetachContext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSWndEGL::CheckContext()
|
|
||||||
{
|
|
||||||
fprintf(stderr,"EGL: %s : %s\n", eglQueryString(m_eglDisplay, EGL_VENDOR) , eglQueryString(m_eglDisplay, EGL_VERSION) );
|
|
||||||
fprintf(stderr,"EGL: extensions supported: %s\n", eglQueryString(m_eglDisplay, EGL_EXTENSIONS));
|
|
||||||
}
|
|
||||||
|
|
||||||
void GSWndEGL::BindAPI()
|
void GSWndEGL::BindAPI()
|
||||||
{
|
{
|
||||||
eglBindAPI(EGL_OPENGL_API);
|
eglBindAPI(EGL_OPENGL_API);
|
||||||
|
@ -144,8 +138,6 @@ bool GSWndEGL::Attach(void* handle, bool managed)
|
||||||
|
|
||||||
AttachContext();
|
AttachContext();
|
||||||
|
|
||||||
CheckContext();
|
|
||||||
|
|
||||||
PopulateGlFunction();
|
PopulateGlFunction();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -36,7 +36,6 @@ class GSWndEGL : public GSWndGL
|
||||||
EGLContext m_eglContext;
|
EGLContext m_eglContext;
|
||||||
|
|
||||||
void CreateContext(int major, int minor);
|
void CreateContext(int major, int minor);
|
||||||
void CheckContext();
|
|
||||||
void BindAPI();
|
void BindAPI();
|
||||||
|
|
||||||
void OpenEGLDisplay();
|
void OpenEGLDisplay();
|
||||||
|
|
|
@ -122,18 +122,6 @@ void GSWndOGL::DetachContext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSWndOGL::CheckContext()
|
|
||||||
{
|
|
||||||
int glxMajorVersion, glxMinorVersion;
|
|
||||||
glXQueryVersion(m_NativeDisplay, &glxMajorVersion, &glxMinorVersion);
|
|
||||||
if (glXIsDirect(m_NativeDisplay, m_context))
|
|
||||||
fprintf(stdout, "glX-Version %d.%d with Direct Rendering\n", glxMajorVersion, glxMinorVersion);
|
|
||||||
else {
|
|
||||||
fprintf(stderr, "glX-Version %d.%d with Indirect Rendering !!! It won't support properly opengl\n", glxMajorVersion, glxMinorVersion);
|
|
||||||
throw GSDXRecoverableError();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool GSWndOGL::Attach(void* handle, bool managed)
|
bool GSWndOGL::Attach(void* handle, bool managed)
|
||||||
{
|
{
|
||||||
m_NativeWindow = *(Window*)handle;
|
m_NativeWindow = *(Window*)handle;
|
||||||
|
@ -145,8 +133,6 @@ bool GSWndOGL::Attach(void* handle, bool managed)
|
||||||
|
|
||||||
AttachContext();
|
AttachContext();
|
||||||
|
|
||||||
CheckContext();
|
|
||||||
|
|
||||||
m_swapinterval_ext = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddress((const GLubyte*) "glXSwapIntervalEXT");
|
m_swapinterval_ext = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddress((const GLubyte*) "glXSwapIntervalEXT");
|
||||||
m_swapinterval_mesa = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");
|
m_swapinterval_mesa = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");
|
||||||
|
|
||||||
|
@ -193,8 +179,6 @@ bool GSWndOGL::Create(const string& title, int w, int h)
|
||||||
|
|
||||||
AttachContext();
|
AttachContext();
|
||||||
|
|
||||||
CheckContext();
|
|
||||||
|
|
||||||
m_swapinterval_ext = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddress((const GLubyte*) "glXSwapIntervalEXT");
|
m_swapinterval_ext = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddress((const GLubyte*) "glXSwapIntervalEXT");
|
||||||
m_swapinterval_mesa = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");
|
m_swapinterval_mesa = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,6 @@ class GSWndOGL final : public GSWndGL
|
||||||
PFNGLXSWAPINTERVALMESAPROC m_swapinterval_mesa;
|
PFNGLXSWAPINTERVALMESAPROC m_swapinterval_mesa;
|
||||||
|
|
||||||
void CreateContext(int major, int minor);
|
void CreateContext(int major, int minor);
|
||||||
void CheckContext();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GSWndOGL();
|
GSWndOGL();
|
||||||
|
|
Loading…
Reference in New Issue