summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-04-21 22:06:04 +0200
committerMichael Lutz <michi@icosahedron.de>2021-04-21 22:44:59 +0200
commite53313391a77eacc23b9aac4a68b4ed0471e0271 (patch)
treee2406924f277ee1d257fa7a57f9a2e84ae8aa855 /src/video/cocoa
parent5ff15443e9160d2669ee9f54a3cefd0c43537320 (diff)
downloadopenttd-e53313391a77eacc23b9aac4a68b4ed0471e0271.tar.xz
Fix: [OpenGL] Check maximum supported texture size against screen resolution.
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/cocoa_ogl.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm
index f8c2e97e0..96c3ea1bf 100644
--- a/src/video/cocoa/cocoa_ogl.mm
+++ b/src/video/cocoa/cocoa_ogl.mm
@@ -254,7 +254,7 @@ const char *VideoDriver_CocoaOpenGL::AllocateContext(bool allow_software)
CGLSetCurrentContext(this->gl_context);
- return OpenGLBackend::Create(&GetOGLProcAddressCallback);
+ return OpenGLBackend::Create(&GetOGLProcAddressCallback, this->GetScreenSize());
}
NSView *VideoDriver_CocoaOpenGL::AllocateDrawView()