Change the default shader in SceneOpenGL2

Push a shader that just does texture lookups. This shader is the one
most likely to be used.
This commit is contained in:
Fredrik Höglund 2014-04-01 18:10:02 +02:00
parent 4394219cd6
commit 99f9d613e9

View file

@ -927,7 +927,7 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend)
} }
// push one shader on the stack so that one is always bound // push one shader on the stack so that one is always bound
ShaderManager::instance()->pushShader(ShaderManager::SimpleShader); ShaderManager::instance()->pushShader(ShaderTrait::MapTexture);
if (checkGLError("Init")) { if (checkGLError("Init")) {
qCritical() << "OpenGL 2 compositing setup failed"; qCritical() << "OpenGL 2 compositing setup failed";
init_ok = false; init_ok = false;