mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 09:18:36 +00:00
Stereo3D: Don't rely on GetEFBLayers() when dealing with shaders.
Shaders may be compiled before the FramebufferManager is initialized.
This commit is contained in:
parent
a09d854636
commit
29e05c5ff8
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue