summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-11 20:30:42 -0400
committerGravatar Lioncash2018-08-11 20:32:03 -0400
commit28e90fa0e05307c8f0d60ab8f30f46ea4029ede4 (patch)
tree69853494e29de6f578533bb236c14c949f50e141 /src
parentMerge pull request #1010 from bunnei/unk-vert-attrib-shader (diff)
downloadyuzu-28e90fa0e05307c8f0d60ab8f30f46ea4029ede4.tar.gz
yuzu-28e90fa0e05307c8f0d60ab8f30f46ea4029ede4.tar.xz
yuzu-28e90fa0e05307c8f0d60ab8f30f46ea4029ede4.zip
gl_rasterizer: Silence implicit truncation warning in SetupShaders()
Previously this would warn of truncating a std::size_t to a u32. This is safe because we'll obviously never have more than UINT32_MAX amount of uniform buffers.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 8360feb5d..7f01af2dd 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -211,7 +211,7 @@ void RasterizerOpenGL::SetupShaders(u8* buffer_ptr, GLintptr buffer_offset) {
211 211
212 // Next available bindpoints to use when uploading the const buffers and textures to the GLSL 212 // Next available bindpoints to use when uploading the const buffers and textures to the GLSL
213 // shaders. The constbuffer bindpoint starts after the shader stage configuration bind points. 213 // shaders. The constbuffer bindpoint starts after the shader stage configuration bind points.
214 u32 current_constbuffer_bindpoint = uniform_buffers.size(); 214 u32 current_constbuffer_bindpoint = static_cast<u32>(uniform_buffers.size());
215 u32 current_texture_bindpoint = 0; 215 u32 current_texture_bindpoint = 0;
216 216
217 for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) { 217 for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) {