- predefine the vertex data for the blend overlay which will never change throughout the lifetime of the GLRenderer object.

This commit is contained in:
Christoph Oelckers 2016-08-08 14:24:48 +02:00
commit 8daaf61160
6 changed files with 24 additions and 18 deletions

View file

@ -164,7 +164,7 @@ void OpenGLFrameBuffer::InitializeState()
//int h = GetHeight();
//glViewport(0, (trueH - h)/2, GetWidth(), GetHeight());
GLRenderer->Initialize();
GLRenderer->Initialize(GetWidth(), GetHeight());
GLRenderer->SetOutputViewport(nullptr);
Begin2D(false);
}