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
This commit is contained in:
MediaPipe Team 2022-10-18 13:46:54 -07:00 committed by Copybara-Service
parent 43345160c5
commit e86cd39521

View File

@ -78,7 +78,7 @@ absl::Status GlContext::CreateContext(NSOpenGLContext* share_context) {
16, 16,
0}; 0};
pixel_format_ = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; pixel_format_ = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs_2_1];
} }
if (!pixel_format_) { if (!pixel_format_) {
// On several Forge machines, the default config fails. For now let's do // On several Forge machines, the default config fails. For now let's do