From 20d2ceef4b6c74c83dd1d77648ee46f3e593d268 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Fri, 18 Dec 2015 15:26:36 -0800 Subject: [PATCH] [osx] Use framebuffer width/height in GLFW port Framebuffer width/height takes pixel ration in consideration. Part of #3294. --- platform/default/glfw_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 9cb0ce69d..66a41b0e1 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -434,7 +434,7 @@ void GLFWView::beforeRender() { // can be accessed with no race because the main thread is blocked // when we render. This will be more straightforward when we move // rendering to the main thread. - glViewport(0, 0, width, height); + glViewport(0, 0, fbWidth, fbHeight); } void GLFWView::afterRender() {