fix build on macOS

This commit is contained in:
Kovid Goyal 2026-11-03 11:26:37 +05:30
parent 1dba9eba6d
commit afb34c1ed5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -59,9 +59,9 @@ surface_destroy(GLSurface *s) {
static void
attach_to_view(GLSurface *s, NSOpenGLContext *context) {
[s->view setWantsBestResolutionOpenGLSurface:(s->high_resolution ? YES : NO)];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[s->view setWantsBestResolutionOpenGLSurface:(s->high_resolution ? YES : NO)];
[context setView:s->view];
#pragma clang diagnostic pop
}