gsdx ogl: remove useless glx/egl context print

This commit is contained in:
Gregory Hainaut 2017-04-09 12:49:03 +02:00
parent 9fa053cd88
commit e91194994f
4 changed files with 0 additions and 26 deletions

View File

@ -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()
{
eglBindAPI(EGL_OPENGL_API);
@ -144,8 +138,6 @@ bool GSWndEGL::Attach(void* handle, bool managed)
AttachContext();
CheckContext();
PopulateGlFunction();
return true;

View File

@ -36,7 +36,6 @@ class GSWndEGL : public GSWndGL
EGLContext m_eglContext;
void CreateContext(int major, int minor);
void CheckContext();
void BindAPI();
void OpenEGLDisplay();

View File

@ -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)
{
m_NativeWindow = *(Window*)handle;
@ -145,8 +133,6 @@ bool GSWndOGL::Attach(void* handle, bool managed)
AttachContext();
CheckContext();
m_swapinterval_ext = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddress((const GLubyte*) "glXSwapIntervalEXT");
m_swapinterval_mesa = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");
@ -193,8 +179,6 @@ bool GSWndOGL::Create(const string& title, int w, int h)
AttachContext();
CheckContext();
m_swapinterval_ext = (PFNGLXSWAPINTERVALEXTPROC) glXGetProcAddress((const GLubyte*) "glXSwapIntervalEXT");
m_swapinterval_mesa = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");

View File

@ -35,7 +35,6 @@ class GSWndOGL final : public GSWndGL
PFNGLXSWAPINTERVALMESAPROC m_swapinterval_mesa;
void CreateContext(int major, int minor);
void CheckContext();
public:
GSWndOGL();