diff options
author | Subv <subv2112@gmail.com> | 2018-07-04 22:22:34 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-04 22:22:34 +0200 |
commit | ce39ae3e575339c28d80044d3202aaccd3827b6d (patch) | |
tree | e7340b2e53add733b70ef185be330ac4912daa12 /src | |
parent | Merge pull request #618 from Subv/clear_used_buffers (diff) | |
download | yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.tar yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.tar.gz yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.tar.bz2 yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.tar.lz yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.tar.xz yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.tar.zst yuzu-ce39ae3e575339c28d80044d3202aaccd3827b6d.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 8 |
1 files changed, 8 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 6b9bb3df1..6ce53bbd9 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -29,6 +29,10 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { switch (attrib.size) { case Maxwell::VertexAttribute::Size::Size_8_8_8_8: return GL_UNSIGNED_BYTE; + case Maxwell::VertexAttribute::Size::Size_16_16: + return GL_UNSIGNED_SHORT; + case Maxwell::VertexAttribute::Size::Size_10_10_10_2: + return GL_UNSIGNED_INT_2_10_10_10_REV; } LOG_CRITICAL(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString()); @@ -41,6 +45,10 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { switch (attrib.size) { case Maxwell::VertexAttribute::Size::Size_8_8_8_8: return GL_BYTE; + case Maxwell::VertexAttribute::Size::Size_16_16: + return GL_SHORT; + case Maxwell::VertexAttribute::Size::Size_10_10_10_2: + return GL_INT_2_10_10_10_REV; } LOG_CRITICAL(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString()); |