summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-09 19:28:14 +0200
committerGitHub <noreply@github.com>2018-08-09 19:28:14 +0200
commitb125137493668052b0fef8707f3517186a7dfed8 (patch)
tree5b3295d6be7c76f0f4f552b908f65e4427276d45
parentMerge pull request #984 from bunnei/rt-none (diff)
parentmaxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16. (diff)
downloadyuzu-b125137493668052b0fef8707f3517186a7dfed8.tar
yuzu-b125137493668052b0fef8707f3517186a7dfed8.tar.gz
yuzu-b125137493668052b0fef8707f3517186a7dfed8.tar.bz2
yuzu-b125137493668052b0fef8707f3517186a7dfed8.tar.lz
yuzu-b125137493668052b0fef8707f3517186a7dfed8.tar.xz
yuzu-b125137493668052b0fef8707f3517186a7dfed8.tar.zst
yuzu-b125137493668052b0fef8707f3517186a7dfed8.zip
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h3
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: