diff options
author | bunnei <bunneidev@gmail.com> | 2020-09-17 05:43:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 05:43:23 +0200 |
commit | 1eae35621e74dc85cfbbab38b56f228bf7e38bf0 (patch) | |
tree | 7d9025464cca40265141fb3f39ef7b2ef76c5234 /src/video_core/renderer_opengl/maxwell_to_gl.h | |
parent | Merge pull request #4662 from lioncash/factory (diff) | |
parent | video_core: Enforce -Werror=switch (diff) | |
download | yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.tar yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.tar.gz yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.tar.bz2 yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.tar.lz yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.tar.xz yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.tar.zst yuzu-1eae35621e74dc85cfbbab38b56f228bf7e38bf0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 6 |
1 files changed, 6 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 fe9bd4b5a..a8be2aa37 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -47,6 +47,8 @@ inline GLenum VertexFormat(Maxwell::VertexAttribute attrib) { return GL_UNSIGNED_INT; case Maxwell::VertexAttribute::Size::Size_10_10_10_2: return GL_UNSIGNED_INT_2_10_10_10_REV; + default: + break; } break; case Maxwell::VertexAttribute::Type::SignedNorm: @@ -70,6 +72,8 @@ inline GLenum VertexFormat(Maxwell::VertexAttribute attrib) { return GL_INT; case Maxwell::VertexAttribute::Size::Size_10_10_10_2: return GL_INT_2_10_10_10_REV; + default: + break; } break; case Maxwell::VertexAttribute::Type::Float: @@ -84,6 +88,8 @@ inline GLenum VertexFormat(Maxwell::VertexAttribute attrib) { case Maxwell::VertexAttribute::Size::Size_32_32_32: case Maxwell::VertexAttribute::Size::Size_32_32_32_32: return GL_FLOAT; + default: + break; } break; } |