- fixed portal benchmarking and added separate output for 2D and finishing the main scene.

This commit is contained in:
Christoph Oelckers 2018-05-13 09:48:19 +02:00
commit 8f96729e06
6 changed files with 53 additions and 22 deletions

View file

@ -149,8 +149,13 @@ void OpenGLFrameBuffer::InitializeState()
void OpenGLFrameBuffer::Update()
{
twoD.Reset();
Flush3D.Reset();
DrawRateStuff();
Flush3D.Clock();
GLRenderer->Flush();
Flush3D.Unclock();
Swap();
CheckBench();
@ -244,7 +249,7 @@ uint32_t OpenGLFrameBuffer::GetCaps()
// legacy mode always has truecolor because palette tonemap is not available
FlagSet |= RFF_TRUECOLOR;
}
else if (!(FGLRenderBuffers::IsEnabled()))
else if (!RenderBuffersEnabled())
{
// truecolor is always available when renderbuffers are unavailable because palette tonemap is not possible
FlagSet |= RFF_TRUECOLOR | RFF_MATSHADER | RFF_BRIGHTMAP;