diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-22 16:58:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-22 16:58:47 +0200 |
commit | 38fa3aae731800d2aaa151015506e7ce5496a893 (patch) | |
tree | 72446cbbf239846032b9cc18720fb0b6baa1b150 | |
parent | Merge pull request #1544 from DarkLordZach/reinitialize-keys-tools (diff) | |
parent | Fixed VAOs Float types only returning GL_FLOAT in cases that they had to return GL_HALF_FLOAT (diff) | |
download | yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.tar yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.tar.gz yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.tar.bz2 yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.tar.lz yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.tar.xz yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.tar.zst yuzu-38fa3aae731800d2aaa151015506e7ce5496a893.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index 3c3bcaae4..0f6dcab2b 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -82,8 +82,20 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { return {}; } - case Maxwell::VertexAttribute::Type::Float: - return GL_FLOAT; + case Maxwell::VertexAttribute::Type::Float: { + switch (attrib.size) { + case Maxwell::VertexAttribute::Size::Size_16: + case Maxwell::VertexAttribute::Size::Size_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16_16: + return GL_HALF_FLOAT; + case Maxwell::VertexAttribute::Size::Size_32: + case Maxwell::VertexAttribute::Size::Size_32_32: + case Maxwell::VertexAttribute::Size::Size_32_32_32: + case Maxwell::VertexAttribute::Size::Size_32_32_32_32: + return GL_FLOAT; + } + } } LOG_CRITICAL(Render_OpenGL, "Unimplemented vertex type={}", attrib.TypeString()); |