call NSOpenGLContext 'update' on opengl context on macos when resizing

This commit is contained in:
jp9000
2013-12-31 03:09:28 -07:00
parent 36041e9d80
commit 969a71d716
4 changed files with 14 additions and 0 deletions

View File

@@ -135,6 +135,8 @@ void device_resize(device_t device, uint32_t cx, uint32_t cy)
/* GL automatically resizes the device, so it doesn't do much */
device->cur_swap->info.cx = cx;
device->cur_swap->info.cy = cy;
gl_update(device);
}
void device_getsize(device_t device, uint32_t *cx, uint32_t *cy)