summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/maxwell_to_gl.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-17 05:43:23 +0200
committerGitHub <noreply@github.com>2020-09-17 05:43:23 +0200
commit1eae35621e74dc85cfbbab38b56f228bf7e38bf0 (patch)
tree7d9025464cca40265141fb3f39ef7b2ef76c5234 /src/video_core/renderer_opengl/maxwell_to_gl.h
parentMerge pull request #4662 from lioncash/factory (diff)
parentvideo_core: Enforce -Werror=switch (diff)
downloadyuzu-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 'src/video_core/renderer_opengl/maxwell_to_gl.h')
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h6
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;
}