fix EGL compilation

This commit is contained in:
Eduardo Bart 2012-04-12 17:00:08 -03:00
parent 0b8d8b4595
commit 9b4115a7e5
2 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,6 @@
X11Window::X11Window()
{
m_fbConfig = 0;
m_display = 0;
m_visual = 0;
m_window = 0;
@ -43,6 +42,7 @@ X11Window::X11Window()
m_size = Size(600,480);
#ifndef OPENGL_ES2
m_fbConfig = 0;
m_glxContext = 0;
#else
m_eglConfig = 0;
@ -419,7 +419,6 @@ void X11Window::internalCreateGLContext()
#endif
m_glxContext = glXCreateContext(m_display, m_visual, NULL, True);
//m_glxContext = glXCreateContext(m_display, m_visual, NULL, True);
if(!m_glxContext)
logFatal("Unable to create GLX context");
@ -481,7 +480,7 @@ void *X11Window::getExtensionProcAddress(const char *ext)
return (void *)glXGetProcAddressARB((const GLubyte*)ext);
#else
//TODO
return false;
return NULL;
#endif
}

View File

@ -82,7 +82,6 @@ public:
bool isMaximized();
private:
GLXFBConfig *m_fbConfig;
Display *m_display;
XVisualInfo *m_visual;
Window m_window;
@ -97,6 +96,7 @@ private:
#ifndef OPENGL_ES2
GLXContext m_glxContext;
GLXFBConfig *m_fbConfig;
#else
EGLConfig m_eglConfig;
EGLContext m_eglContext;