summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-06-29 17:48:38 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-06-29 17:48:38 +0200
commit10eca7f651d0dc407c7c4076d11e0b960d9dedd4 (patch)
tree9fd6821a2d6215c98d549ccb0d76eb9fbc07b057 /src/video_core/renderer_opengl/gl_rasterizer.cpp
parentmaxwell_to_vk: Reorder vertex formats and add A2B10G10R10 for all types except float (diff)
downloadyuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.tar
yuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.tar.gz
yuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.tar.bz2
yuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.tar.lz
yuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.tar.xz
yuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.tar.zst
yuzu-10eca7f651d0dc407c7c4076d11e0b960d9dedd4.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 362457ffe..e960a0ef1 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -213,9 +213,10 @@ void RasterizerOpenGL::SetupVertexFormat() {
if (attrib.type == Maxwell::VertexAttribute::Type::SignedInt ||
attrib.type == Maxwell::VertexAttribute::Type::UnsignedInt) {
glVertexAttribIFormat(gl_index, attrib.ComponentCount(),
- MaxwellToGL::VertexType(attrib), attrib.offset);
+ MaxwellToGL::VertexFormat(attrib), attrib.offset);
} else {
- glVertexAttribFormat(gl_index, attrib.ComponentCount(), MaxwellToGL::VertexType(attrib),
+ glVertexAttribFormat(gl_index, attrib.ComponentCount(),
+ MaxwellToGL::VertexFormat(attrib),
attrib.IsNormalized() ? GL_TRUE : GL_FALSE, attrib.offset);
}
glVertexAttribBinding(gl_index, attrib.buffer);