diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-04-21 22:06:04 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-21 22:44:59 +0200 |
commit | e53313391a77eacc23b9aac4a68b4ed0471e0271 (patch) | |
tree | e2406924f277ee1d257fa7a57f9a2e84ae8aa855 /src/video/cocoa/cocoa_ogl.mm | |
parent | 5ff15443e9160d2669ee9f54a3cefd0c43537320 (diff) | |
download | openttd-e53313391a77eacc23b9aac4a68b4ed0471e0271.tar.xz |
Fix: [OpenGL] Check maximum supported texture size against screen resolution.
Diffstat (limited to 'src/video/cocoa/cocoa_ogl.mm')
-rw-r--r-- | src/video/cocoa/cocoa_ogl.mm | 2 |
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() |