mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
An OpenGL context is neither still necessary nor desirable.
This commit is contained in:
parent
fdd102df52
commit
b0efc647f1
@ -13,29 +13,10 @@
|
||||
@interface MasterSystemVDPTests : XCTestCase
|
||||
@end
|
||||
|
||||
@implementation MasterSystemVDPTests {
|
||||
NSOpenGLContext *_openGLContext;
|
||||
}
|
||||
@implementation MasterSystemVDPTests
|
||||
|
||||
- (void)setUp {
|
||||
[super setUp];
|
||||
|
||||
// Create a valid OpenGL context, so that a VDP can be constructed.
|
||||
NSOpenGLPixelFormatAttribute attributes[] = {
|
||||
NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
|
||||
0
|
||||
};
|
||||
|
||||
NSOpenGLPixelFormat *pixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes];
|
||||
_openGLContext = [[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext:nil];
|
||||
[_openGLContext makeCurrentContext];
|
||||
}
|
||||
|
||||
- (void)tearDown {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
_openGLContext = nil;
|
||||
|
||||
[super tearDown];
|
||||
}
|
||||
|
||||
- (void)testLineInterrupt {
|
||||
|
Loading…
Reference in New Issue
Block a user