mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- allow swapping the order of gl_finish and SwapBuffers calls, because some cards do not seem to like the correct order.
This commit is contained in:
parent
834802def3
commit
daf1a40521
1 changed files with 5 additions and 2 deletions
|
@ -207,17 +207,20 @@ void OpenGLFrameBuffer::Update()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
CVAR(Bool, gl_finishbeforeswap, false, 0);
|
||||
|
||||
void OpenGLFrameBuffer::Swap()
|
||||
{
|
||||
Finish.Reset();
|
||||
Finish.Clock();
|
||||
if (gl_finishbeforeswap) glFinish();
|
||||
if (needsetgamma)
|
||||
{
|
||||
//DoSetGamma();
|
||||
needsetgamma = false;
|
||||
}
|
||||
SwapBuffers();
|
||||
glFinish();
|
||||
if (!gl_finishbeforeswap) glFinish();
|
||||
Finish.Unclock();
|
||||
swapped = true;
|
||||
FHardwareTexture::UnbindAll();
|
||||
|
|
Loading…
Reference in a new issue