From e86cd39521ce93607d5acfa3276faae965a8c988 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Tue, 18 Oct 2022 13:46:54 -0700 Subject: [PATCH] Use unused pixel format attribute variable as intended Based on the comments and the context, we should be trying to use the specified attributes in orders to initialize the pixel_format_ variable. PiperOrigin-RevId: 482011065 --- mediapipe/gpu/gl_context_nsgl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/gpu/gl_context_nsgl.cc b/mediapipe/gpu/gl_context_nsgl.cc index dda74f0ce..561474ad8 100644 --- a/mediapipe/gpu/gl_context_nsgl.cc +++ b/mediapipe/gpu/gl_context_nsgl.cc @@ -78,7 +78,7 @@ absl::Status GlContext::CreateContext(NSOpenGLContext* share_context) { 16, 0}; - pixel_format_ = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; + pixel_format_ = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs_2_1]; } if (!pixel_format_) { // On several Forge machines, the default config fails. For now let's do