diff --git a/src/glstate.cpp b/src/glstate.cpp index c6753c4..dd47260 100644 --- a/src/glstate.cpp +++ b/src/glstate.cpp @@ -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); diff --git a/src/main.cpp b/src/main.cpp index 9de4513..cda781b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);