mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue