[osx] Use framebuffer width/height in GLFW port
Framebuffer width/height takes pixel ration in consideration. Part of #3294.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user