1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

OSMesa: Use framebuffer size for framebuffer

This commit is contained in:
Camilla Löwy 2017-02-28 22:21:42 +01:00
parent 97b0c645bf
commit 315c9455d5

View File

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