- fixed initialization.

This commit is contained in:
Christoph Oelckers 2018-10-21 14:45:03 +02:00
parent 0af65a8fa0
commit 346a9ce149

View file

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