Move GL state initialization into GLState
This commit is contained in:
parent
f89cd2d207
commit
a21423ca1c
|
@ -131,6 +131,9 @@ GLState::Caps::Caps()
|
|||
|
||||
GLState::GLState()
|
||||
{
|
||||
glEnable(GL_BLEND);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
clearColor.init(Vec4(0, 0, 0, 1));
|
||||
blendMode.init(BlendNormal);
|
||||
scissorTest.init(false);
|
||||
|
|
|
@ -98,9 +98,6 @@ int rgssThreadFun(void *userdata)
|
|||
|
||||
SDL_GL_SetSwapInterval(threadData->config.vsync ? 1 : 0);
|
||||
|
||||
glEnable(GL_BLEND);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
DebugLogger dLogger;
|
||||
|
||||
GlobalState::initInstance(threadData);
|
||||
|
|
Loading…
Reference in New Issue