Fixed Issue #33.

This commit is contained in:
bkaradzic 2013-05-16 21:31:59 -07:00
parent 7cbe31b823
commit 6890764dc1

View file

@ -127,6 +127,7 @@ namespace bgfx
#if BGFX_CONFIG_RENDERER_OPENGL >= 31
glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddress( (const GLubyte*)"glXCreateContextAttribsARB");
if (NULL != glXCreateContextAttribsARB)
{
BX_TRACE("Create GL 3.1 context.");
@ -154,6 +155,8 @@ namespace bgfx
import();
glXMakeCurrent(s_display, s_window, m_context);
glXSwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC)glXGetProcAddress( (const GLubyte*)"glXSwapIntervalEXT");
if (NULL != glXSwapIntervalEXT)
{
@ -179,8 +182,6 @@ namespace bgfx
}
}
glXMakeCurrent(s_display, s_window, m_context);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
glXSwapBuffers(s_display, s_window);