Stereo3D: Don't rely on GetEFBLayers() when dealing with shaders.

Shaders may be compiled before the FramebufferManager is initialized.
This commit is contained in:
Jules Blok 2014-12-29 11:18:14 +01:00
parent a09d854636
commit 29e05c5ff8
2 changed files with 3 additions and 3 deletions

View file

@ -400,7 +400,7 @@ void TextureCache::CompileShaders()
" gl_Position = vec4(rawpos*2.0-1.0, 0.0, 1.0);\n"
"}\n";
const char *GProgram = FramebufferManager::GetEFBLayers() > 1 ?
const char *GProgram = g_ActiveConfig.iStereoMode > 0 ?
"layout(triangles) in;\n"
"layout(triangle_strip, max_vertices = 6) out;\n"
"in vec3 v_uv0[3];\n"