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

maxwell_to_gl: Implement PrimitiveTopology::Points.

- Used by Super Mario Odyssey (in game).
bunnei пре 8 година
родитељ
комит
06d0b96ca9
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

@@ -85,6 +85,8 @@ inline GLenum IndexFormat(Maxwell::IndexFormat index_format) {
 
 inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) {
     switch (topology) {
+    case Maxwell::PrimitiveTopology::Points:
+        return GL_POINTS;
     case Maxwell::PrimitiveTopology::Triangles:
         return GL_TRIANGLES;
     case Maxwell::PrimitiveTopology::TriangleStrip: