mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- removed gl_draw_synv because with the postprocessing this is no longer useful.
This commit is contained in:
parent
3ba3149df3
commit
45ff15559d
3 changed files with 1 additions and 17 deletions
|
@ -480,7 +480,6 @@ void FGLRenderer::RenderTranslucent()
|
|||
// stencil, z-buffer and the projection matrix intact!
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
EXTERN_CVAR(Bool, gl_draw_sync)
|
||||
|
||||
void FGLRenderer::DrawScene(int drawmode)
|
||||
{
|
||||
|
@ -502,14 +501,6 @@ void FGLRenderer::DrawScene(int drawmode)
|
|||
}
|
||||
GLRenderer->mClipPortal = NULL; // this must be reset before any portal recursion takes place.
|
||||
|
||||
// Up to this point in the main draw call no rendering is performed so we can wait
|
||||
// with swapping the render buffer until now.
|
||||
if (!gl_draw_sync && drawmode == DM_MAINVIEW)
|
||||
{
|
||||
All.Unclock();
|
||||
static_cast<OpenGLFrameBuffer*>(screen)->Swap();
|
||||
All.Clock();
|
||||
}
|
||||
RenderScene(recursion);
|
||||
|
||||
// Handle all portals after rendering the opaque objects but before
|
||||
|
|
|
@ -142,7 +142,6 @@ void GLWall::PutWall(bool translucent)
|
|||
{
|
||||
if (gl.lightmethod == LM_SOFTWARE && !translucent)
|
||||
{
|
||||
// This is not yet ready.
|
||||
if (PutWallCompat(passflag[type])) return;
|
||||
}
|
||||
|
||||
|
|
|
@ -179,9 +179,6 @@ void OpenGLFrameBuffer::InitializeState()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
// Testing only for now.
|
||||
CVAR(Bool, gl_draw_sync, true, 0) //false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
|
||||
void OpenGLFrameBuffer::Update()
|
||||
{
|
||||
if (!CanUpdate())
|
||||
|
@ -197,10 +194,7 @@ void OpenGLFrameBuffer::Update()
|
|||
|
||||
GLRenderer->SetOutputViewport(nullptr);
|
||||
|
||||
if (gl_draw_sync || !swapped)
|
||||
{
|
||||
Swap();
|
||||
}
|
||||
swapped = false;
|
||||
Unlock();
|
||||
CheckBench();
|
||||
|
|
Loading…
Reference in a new issue