Sanitized the Being/End2D interface so that it can be used to keep the attribute buffer mapped while processing 2D commands.

For this to work the 2D mode has to be properly set and unset at the right places so that no double mapping occurs and no render operation can happen while in 2D mode.

# Conflicts:
#	src/d_main.cpp
#	src/v_video.h
This commit is contained in:
Christoph Oelckers 2018-08-28 12:58:57 +02:00
commit ecf6e3f620
4 changed files with 102 additions and 108 deletions

View file

@ -151,7 +151,6 @@ void OpenGLFrameBuffer::Update()
twoD.Reset();
Flush3D.Reset();
DrawRateStuff();
Flush3D.Clock();
GLRenderer->Flush();
Flush3D.Unclock();