mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +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
|
@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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user