Move GL state initialization into GLState

This commit is contained in:
Jonas Kulla 2013-09-04 21:05:47 +02:00
parent f89cd2d207
commit a21423ca1c
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);