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:
Jeroen Bakker 2021-11-08 15:49:51 +01:00
parent 495e60c0da
commit c865577643
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}