fix EGL compilation

master
Eduardo Bart 12 years ago
parent 0b8d8b4595
commit 9b4115a7e5

@ -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
}

@ -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;

Loading…
Cancel
Save