1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

An OpenGL context is neither still necessary nor desirable.

This commit is contained in:
Thomas Harte 2020-11-26 13:49:41 -05:00
parent fdd102df52
commit b0efc647f1

View File

@ -13,29 +13,10 @@
@interface MasterSystemVDPTests : XCTestCase @interface MasterSystemVDPTests : XCTestCase
@end @end
@implementation MasterSystemVDPTests { @implementation MasterSystemVDPTests
NSOpenGLContext *_openGLContext;
}
- (void)setUp { - (void)setUp {
[super 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 { - (void)testLineInterrupt {