Merge pull request #236 from rohit-n/sign-compare

Silence a few -Wsign-compare warnings.
This commit is contained in:
bunnei 2014-12-03 10:04:47 -05:00
commit 63b1453dd8
3 changed files with 6 additions and 6 deletions

View file

@ -61,7 +61,7 @@ void RendererOpenGL::SwapBuffers() {
for(int i : {0, 1}) {
const auto& framebuffer = GPU::g_regs.framebuffer_config[i];
if (textures[i].width != framebuffer.width || textures[i].height != framebuffer.height) {
if (textures[i].width != (GLsizei)framebuffer.width || textures[i].height != (GLsizei)framebuffer.height) {
// Reallocate texture if the framebuffer size has changed.
// This is expected to not happen very often and hence should not be a
// performance problem.