mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +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