From: sumibi-yakitori Date: Thu, 1 Jun 2023 07:46:24 +0000 (+0900) Subject: Fix a bug in error checking conditions. This avoids unintentional `Legacy` of the... X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~193^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7b8a5235d4d650ebba4eda7fa82ca84bbf47a6c5;p=gtk4.git Fix a bug in error checking conditions. This avoids unintentional `Legacy` of the created OpenGL context --- diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index ce78b09965..dc53e24079 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -344,14 +344,14 @@ create_pixel_format (GdkGLVersion *version, if (gdk_gl_version_get_major (version) >= 4) { attrs[1] = (CGLPixelFormatAttribute)kCGLOGLPVersion_GL4_Core; - if (CGLChoosePixelFormat (attrs, &format, &n_format)) + if (CHECK (error, CGLChoosePixelFormat (attrs, &format, &n_format))) return g_steal_pointer (&format); } if (gdk_gl_version_greater_equal (version, &GDK_GL_MIN_GL_VERSION)) { attrs[1] = (CGLPixelFormatAttribute)kCGLOGLPVersion_GL3_Core; - if (CGLChoosePixelFormat (attrs, &format, &n_format)) + if (CHECK (error, CGLChoosePixelFormat (attrs, &format, &n_format))) return g_steal_pointer (&format); }