Browse Source
Merge pull request #1021 from lioncash/warn
gl_rasterizer: Silence implicit truncation warning in SetupShaders()
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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
|
|
|
// 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.
|
|
|
// 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; |
|
|
u32 current_texture_bindpoint = 0; |
|
|
|
|
|
|
|
|
for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) { |
|
|
for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) { |
|
|
|