summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.cpp
diff options
context:
space:
mode:
authorRohit Nirmal <rohitnirmal9@gmail.com>2015-10-07 04:28:19 +0200
committerRohit Nirmal <rohitnirmal9@gmail.com>2015-10-07 05:16:15 +0200
commit32391cffdda059f23258b535f386732084d1cac9 (patch)
tree500eb7180aae531f23d29bec2ea054c661c01cc5 /src/video_core/renderer_opengl/gl_rasterizer.cpp
parentMerge pull request #1164 from kemenaran/qt-high-dpi-fixes (diff)
downloadyuzu-32391cffdda059f23258b535f386732084d1cac9.tar
yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.gz
yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.bz2
yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.lz
yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.xz
yuzu-32391cffdda059f23258b535f386732084d1cac9.tar.zst
yuzu-32391cffdda059f23258b535f386732084d1cac9.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp6
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() {
}
// Create sampler objects
- for (int i = 0; i < texture_samplers.size(); ++i) {
+ for (size_t i = 0; i < texture_samplers.size(); ++i) {
texture_samplers[i].Create();
state.texture_units[i].sampler = texture_samplers[i].sampler.handle;
}
@@ -601,8 +601,8 @@ void RasterizerOpenGL::SyncFramebuffer() {
PAddr cur_fb_depth_addr = regs.framebuffer.GetDepthBufferPhysicalAddress();
Pica::Regs::DepthFormat new_fb_depth_format = regs.framebuffer.depth_format;
- bool fb_size_changed = fb_color_texture.width != regs.framebuffer.GetWidth() ||
- fb_color_texture.height != regs.framebuffer.GetHeight();
+ bool fb_size_changed = fb_color_texture.width != static_cast<GLsizei>(regs.framebuffer.GetWidth()) ||
+ fb_color_texture.height != static_cast<GLsizei>(regs.framebuffer.GetHeight());
bool color_fb_prop_changed = fb_color_texture.format != new_fb_color_format ||
fb_size_changed;