Explorar o código

Merge pull request #3218 from FernandoS27/tess-gl

Gl_Rasterizer: Skip Tesselation Control and Eval stages as they are unimplemented
Fernando Sahmkow %!s(int64=6) %!d(string=hai) anos
pai
achega
900b2e5cae
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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