Browse Source

OSMesa: Use framebuffer size for framebuffer

Camilla Löwy 8 năm trước cách đây
mục cha
commit
315c9455d5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/osmesa_context.c

+ 1 - 1
src/osmesa_context.c

@@ -37,7 +37,7 @@ static void makeContextCurrentOSMesa(_GLFWwindow* window)
     if (window)
     {
         int width, height;
-        _glfwPlatformGetWindowSize(window, &width, &height);
+        _glfwPlatformGetFramebufferSize(window, &width, &height);
 
         // Check to see if we need to allocate a new buffer
         if ((window->context.osmesa.buffer == NULL) ||