summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-02-05 01:32:36 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-05 01:32:36 +0100
commit8bb9eef97beff0a5835055fb3a1c0d0f44676f40 (patch)
tree25df124d0e1082eb75f19378a65ede671c0d8601 /src/video_core
parentmaxwell_to_gl: Reduce unimplemented formats to LOG_ERROR (diff)
downloadyuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.tar
yuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.tar.gz
yuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.tar.bz2
yuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.tar.lz
yuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.tar.xz
yuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.tar.zst
yuzu-8bb9eef97beff0a5835055fb3a1c0d0f44676f40.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h8
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 81b4f33e7..7ed505628 100644
--- a/src/video_core/renderer_opengl/maxwell_to_gl.h
+++ b/src/video_core/renderer_opengl/maxwell_to_gl.h
@@ -90,6 +90,14 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) {
LOG_ERROR(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());
return {};
}
+ case Maxwell::VertexAttribute::Type::UnsignedScaled:
+ switch (attrib.size) {
+ case Maxwell::VertexAttribute::Size::Size_8_8:
+ return GL_UNSIGNED_BYTE;
+ default:
+ LOG_ERROR(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());
+ return {};
+ }
default:
LOG_ERROR(Render_OpenGL, "Unimplemented vertex type={}", attrib.TypeString());
return {};