- fixed initialization.

This commit is contained in:
Christoph Oelckers 2018-10-21 14:45:03 +02:00
parent 0af65a8fa0
commit 346a9ce149
1 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,6 @@ OpenGLFrameBuffer::OpenGLFrameBuffer(void *hMonitor, bool fullscreen) :
GLRenderer = nullptr;
InitPalette();
// Move some state to the framebuffer object for easier access.
hwcaps = gl.flags;
glslversion = gl.glslversion;
}
OpenGLFrameBuffer::~OpenGLFrameBuffer()
@ -112,6 +108,10 @@ void OpenGLFrameBuffer::InitializeState()
gl_LoadExtensions();
// Move some state to the framebuffer object for easier access.
hwcaps = gl.flags;
glslversion = gl.glslversion;
if (first)
{
first=false;