1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-10 12:29:01 +00:00

Throws out a little more OpenGL.

This commit is contained in:
Thomas Harte 2020-08-09 22:11:31 -04:00
parent 28d933d5d6
commit 3d6590af89

View File

@ -194,30 +194,6 @@ static CVReturn DisplayLinkCallback(__unused CVDisplayLinkRef displayLink, const
self.device = MTLCreateSystemDefaultDevice();
}
// NSOpenGLPixelFormatAttribute attributes[] = {
// NSOpenGLPFADoubleBuffer,
// NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
//// NSOpenGLPFAMultisample,
//// NSOpenGLPFASampleBuffers, 1,
//// NSOpenGLPFASamples, 2,
// 0
// };
//
// NSOpenGLPixelFormat *pixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes];
// NSOpenGLContext *context = [[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext:nil];
//
//#ifdef DEBUG
// // When we're using a CoreProfile context, crash if we call a legacy OpenGL function
// // This will make it much more obvious where and when such a function call is made so
// // that we can remove such calls.
// // Without this we'd simply get GL_INVALID_OPERATION error for calling legacy functions
// // but it would be more difficult to see where that function was called.
// CGLEnable([context CGLContextObj], kCGLCECrashOnRemovedFunctions);
//#endif
//
// self.pixelFormat = pixelFormat;
// self.openGLContext = context;
// self.wantsBestResolutionOpenGLSurface = YES;
// Create the scan target.
_scanTarget = [[CSScanTarget alloc] initWithView:self];
self.delegate = _scanTarget;