diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-12-29 11:18:14 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-12-29 11:19:55 +0100 |
| commit | 29e05c5ff854c87b79ae06bd71161d0ec2468ac8 (patch) | |
| tree | 4affef27b1f64ea622611833be8c086e17580a5c /Source/Core/VideoBackends/OGL/TextureCache.cpp | |
| parent | a09d8546364df7528d0d136db5067ede6bb089bc (diff) | |
Stereo3D: Don't rely on GetEFBLayers() when dealing with shaders.
Shaders may be compiled before the FramebufferManager is initialized.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureCache.cpp b/Source/Core/VideoBackends/OGL/TextureCache.cpp index 0adb078cd5..4199604cd0 100644 --- a/Source/Core/VideoBackends/OGL/TextureCache.cpp +++ b/Source/Core/VideoBackends/OGL/TextureCache.cpp @@ -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" |
