mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-08 03:54:27 +00:00
Throws out a little more OpenGL.
This commit is contained in:
parent
28d933d5d6
commit
3d6590af89
@ -194,30 +194,6 @@ static CVReturn DisplayLinkCallback(__unused CVDisplayLinkRef displayLink, const
|
|||||||
self.device = MTLCreateSystemDefaultDevice();
|
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.
|
// Create the scan target.
|
||||||
_scanTarget = [[CSScanTarget alloc] initWithView:self];
|
_scanTarget = [[CSScanTarget alloc] initWithView:self];
|
||||||
self.delegate = _scanTarget;
|
self.delegate = _scanTarget;
|
||||||
|
Loading…
Reference in New Issue
Block a user