diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-09 13:28:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 13:28:14 -0400 |
commit | b125137493668052b0fef8707f3517186a7dfed8 (patch) | |
tree | 5b3295d6be7c76f0f4f552b908f65e4427276d45 /src | |
parent | f765a6b902396f72cace4553a16d5e46edc18e34 (diff) | |
parent | dfc3eed0cbbf86af0e4d644b8a444f6ea29a1914 (diff) |
Merge pull request #993 from bunnei/smo-vtx-pts
Implement VertexAttribute::Size::Size_16_16_16_16 and PrimitiveTopology::Points.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index 500d4d4b1..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; @@ -85,6 +86,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: |