Преглед изворни кода

Gl_Rasterizer: Skip Tesselation Control and Eval stages as they are un implemented.

This commit ensures the OGL backend does not execute tesselation shader 
stages as they are currently unimplemented.
Fernando Sahmkow пре 6 година
родитељ
комит
1d2ba3cc97
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      src/video_core/renderer_opengl/gl_rasterizer.cpp

+ 8 - 0
src/video_core/renderer_opengl/gl_rasterizer.cpp

@@ -277,6 +277,14 @@ void RasterizerOpenGL::SetupShaders(GLenum primitive_mode) {
             continue;
         }
 
+        // Currently this stages are not supported in the OpenGL backend.
+        // Todo(Blinkhawk): Port tesselation shaders from Vulkan to OpenGL
+        if (program == Maxwell::ShaderProgram::TesselationControl) {
+            continue;
+        } else if (program == Maxwell::ShaderProgram::TesselationEval) {
+            continue;
+        }
+
         Shader shader{shader_cache.GetStageProgram(program)};
 
         // Stage indices are 0 - 5