diff options
| author | 2015-10-06 21:28:19 -0500 | |
|---|---|---|
| committer | 2015-10-06 22:16:15 -0500 | |
| commit | 32391cffdda059f23258b535f386732084d1cac9 (patch) | |
| tree | 500eb7180aae531f23d29bec2ea054c661c01cc5 /src/video_core | |
| parent | Merge pull request #1164 from kemenaran/qt-high-dpi-fixes (diff) | |
| download | yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.gz yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.xz yuzu-32391cffdda059f23258b535f386732084d1cac9.zip | |
Silence -Wsign-compare warnings.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 50eb157a5..a613fe136 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -69,7 +69,7 @@ void RasterizerOpenGL::InitObjects() { | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | // Create sampler objects | 71 | // Create sampler objects |
| 72 | for (int i = 0; i < texture_samplers.size(); ++i) { | 72 | for (size_t i = 0; i < texture_samplers.size(); ++i) { |
| 73 | texture_samplers[i].Create(); | 73 | texture_samplers[i].Create(); |
| 74 | state.texture_units[i].sampler = texture_samplers[i].sampler.handle; | 74 | state.texture_units[i].sampler = texture_samplers[i].sampler.handle; |
| 75 | } | 75 | } |
| @@ -601,8 +601,8 @@ void RasterizerOpenGL::SyncFramebuffer() { | |||
| 601 | PAddr cur_fb_depth_addr = regs.framebuffer.GetDepthBufferPhysicalAddress(); | 601 | PAddr cur_fb_depth_addr = regs.framebuffer.GetDepthBufferPhysicalAddress(); |
| 602 | Pica::Regs::DepthFormat new_fb_depth_format = regs.framebuffer.depth_format; | 602 | Pica::Regs::DepthFormat new_fb_depth_format = regs.framebuffer.depth_format; |
| 603 | 603 | ||
| 604 | bool fb_size_changed = fb_color_texture.width != regs.framebuffer.GetWidth() || | 604 | bool fb_size_changed = fb_color_texture.width != static_cast<GLsizei>(regs.framebuffer.GetWidth()) || |
| 605 | fb_color_texture.height != regs.framebuffer.GetHeight(); | 605 | fb_color_texture.height != static_cast<GLsizei>(regs.framebuffer.GetHeight()); |
| 606 | 606 | ||
| 607 | bool color_fb_prop_changed = fb_color_texture.format != new_fb_color_format || | 607 | bool color_fb_prop_changed = fb_color_texture.format != new_fb_color_format || |
| 608 | fb_size_changed; | 608 | fb_size_changed; |