From 06d0b96ca9b25b26f59e965e23e2cc7491c6ce66 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 8 Aug 2018 22:16:27 -0400 Subject: maxwell_to_gl: Implement PrimitiveTopology::Points. - Used by Super Mario Odyssey (in game). --- src/video_core/renderer_opengl/maxwell_to_gl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index 500d4d4b1..f57464981 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/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: -- cgit v1.2.3 From dfc3eed0cbbf86af0e4d644b8a444f6ea29a1914 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 8 Aug 2018 22:07:16 -0400 Subject: maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16. - Used by Super Mario Odyssey (in game). --- src/video_core/renderer_opengl/maxwell_to_gl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index f57464981..43be69dd1 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -31,6 +31,7 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { case Maxwell::VertexAttribute::Size::Size_8_8_8_8: return GL_UNSIGNED_BYTE; case Maxwell::VertexAttribute::Size::Size_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16_16: return GL_UNSIGNED_SHORT; case Maxwell::VertexAttribute::Size::Size_10_10_10_2: return GL_UNSIGNED_INT_2_10_10_10_REV; -- cgit v1.2.3