mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Separated window and framebuffer sizes.
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ static GLuint create_texture(void)
|
||||
static void draw_quad(GLuint texture)
|
||||
{
|
||||
int width, height;
|
||||
glfwGetWindowSize(glfwGetCurrentContext(), &width, &height);
|
||||
glfwGetFramebufferSize(glfwGetCurrentContext(), &width, &height);
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user