- 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:
parent
b59d82ad5b
commit
761ab4ab78
10 changed files with 887 additions and 889 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue