GPUTest: Add support to test on Windows.
On windows the OpenGL context wasn't activated when created, on Linux it is. This patch will activate the context in gpu/draw test cases.
This commit is contained in:
parent
495e60c0da
commit
c865577643
|
@ -18,6 +18,7 @@ void GPUTest::SetUp()
|
|||
CLG_init();
|
||||
ghost_system = GHOST_CreateSystem();
|
||||
ghost_context = GHOST_CreateOpenGLContext(ghost_system, glSettings);
|
||||
GHOST_ActivateOpenGLContext(ghost_context);
|
||||
context = GPU_context_create(nullptr);
|
||||
GPU_init();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue