diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-11 22:39:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-11 22:39:46 -0400 |
commit | 9c977d221505fe6c604aea4f55c837cf10c555bb (patch) | |
tree | 8dd01c0eba2e8df9b38805aebc42e22739b2f7c7 /src | |
parent | f2c7b5dcd69fc27fd1710e61e8a96133fe160792 (diff) | |
parent | 28e90fa0e05307c8f0d60ab8f30f46ea4029ede4 (diff) |
Merge pull request #1021 from lioncash/warn
gl_rasterizer: Silence implicit truncation warning in SetupShaders()
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 |
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 3646a1b1b4..ea03e9b88a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -216,7 +216,7 @@ void RasterizerOpenGL::SetupShaders(u8* buffer_ptr, GLintptr buffer_offset) { // Next available bindpoints to use when uploading the const buffers and textures to the GLSL // shaders. The constbuffer bindpoint starts after the shader stage configuration bind points. - u32 current_constbuffer_bindpoint = uniform_buffers.size(); + u32 current_constbuffer_bindpoint = static_cast<u32>(uniform_buffers.size()); u32 current_texture_bindpoint = 0; for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) { |