[osx] Use framebuffer width/height in GLFW port

Framebuffer width/height takes pixel ration in consideration.

Part of #3294.
This commit is contained in:
Bruno de Oliveira Abinader
2015-12-18 15:26:36 -08:00
parent 925687ab06
commit 20d2ceef4b

View File

@@ -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() {