mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- fixed initialization.
This commit is contained in:
parent
0af65a8fa0
commit
346a9ce149
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue