- moved all system specific code out of gl_interface.cpp into the respective Video classes (Win32GLVideo andSDLGLVideo.) (SDL side not tested yet!)

This commit is contained in:
Christoph Oelckers 2013-08-18 14:16:33 +02:00
commit 761ab4ab78
10 changed files with 887 additions and 889 deletions

View file

@ -96,7 +96,7 @@ OpenGLFrameBuffer::OpenGLFrameBuffer(void *hMonitor, int width, int height, int
needsetgamma = true;
swapped = false;
Accel2D = true;
if (gl.SetVSync!=NULL) gl.SetVSync(vid_vsync);
SetVSync(vid_vsync);
}
OpenGLFrameBuffer::~OpenGLFrameBuffer()
@ -228,7 +228,7 @@ void OpenGLFrameBuffer::Swap()
//DoSetGamma();
needsetgamma = false;
}
gl.SwapBuffers();
SwapBuffers();
Finish.Unclock();
swapped = true;
FHardwareTexture::UnbindAll();