From a21423ca1c90b6f95025c99c2c525889b4f04407 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Wed, 4 Sep 2013 21:05:47 +0200 Subject: [PATCH] Move GL state initialization into GLState --- src/glstate.cpp | 3 +++ src/main.cpp | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) 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);