Просмотр исходного кода

maxwell_to_gl: Implement PrimitiveTopology::Lines

Used by Splatoon 2's debug menu.
OatmealDome 8 лет назад
Родитель
Сommit
ad1220e1b3
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/video_core/renderer_opengl/maxwell_to_gl.h

+ 2 - 0
src/video_core/renderer_opengl/maxwell_to_gl.h

@@ -107,6 +107,8 @@ inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) {
     switch (topology) {
     case Maxwell::PrimitiveTopology::Points:
         return GL_POINTS;
+    case Maxwell::PrimitiveTopology::Lines:
+        return GL_LINES;
     case Maxwell::PrimitiveTopology::LineStrip:
         return GL_LINE_STRIP;
     case Maxwell::PrimitiveTopology::Triangles: