浏览代码

OSMesa: Use framebuffer size for framebuffer

Camilla Löwy 8 年之前
父节点
当前提交
315c9455d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) ||