mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
OSMesa: Use framebuffer size for framebuffer
This commit is contained in:
@@ -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) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user