summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 3757482db..082a464b3 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -230,10 +230,10 @@ void RendererOpenGL::SetWindow(EmuWindow* window) {
}
void RendererOpenGL::UpdateViewportExtent() {
- int width_in_pixels;
- int height_in_pixels;
+ unsigned width_in_pixels;
+ unsigned height_in_pixels;
- render_window->GetFramebufferSize(&width_in_pixels, &height_in_pixels);
+ std::tie(width_in_pixels, height_in_pixels) = render_window->GetFramebufferSize();
// No update needed if framebuffer size hasn't changed
if (width_in_pixels == framebuffer_size.width && height_in_pixels == framebuffer_size.height) {