diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-11-08 17:49:51 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-11-08 17:49:51 +0300 |
commit | c865577643901c4da9161849fa715e54468de638 (patch) | |
tree | 222fe35595455fac98d6ed791ff9a886baa56e0d /source | |
parent | 495e60c0dae16a906de5d87e12f9caa8f437a728 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/tests/gpu_testing.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/tests/gpu_testing.cc b/source/blender/gpu/tests/gpu_testing.cc index ac42c5875c8..7fd473069c2 100644 --- a/source/blender/gpu/tests/gpu_testing.cc +++ b/source/blender/gpu/tests/gpu_testing.cc @@ -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(); } |