Changed: Partially abstracted the windows version of OpenArena::Window CreateGLWindow and KillGLWindow are now part of the Window class. ResizeGLScene and InitGL are now callbacks. Direct calls to SwapBuffers and glXSwapBuffers have been replaced by a SwapBuffers method of Window.
~g2k
This commit is contained in:
@@ -60,11 +60,8 @@ int DrawGLScene()
|
||||
{
|
||||
level.Render();
|
||||
|
||||
//Maybe this should be integrated into the Window class
|
||||
if(g_Screen.doubleBuffered)
|
||||
{
|
||||
glXSwapBuffers(g_Screen.display, g_Screen.window);
|
||||
}
|
||||
g_Screen.SwapBuffers();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user