Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-11-08 17:49:51 +0300
committerJeroen Bakker <jeroen@blender.org>2021-11-08 17:49:51 +0300
commitc865577643901c4da9161849fa715e54468de638 (patch)
tree222fe35595455fac98d6ed791ff9a886baa56e0d /source/blender/gpu
parent495e60c0dae16a906de5d87e12f9caa8f437a728 (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/blender/gpu')
-rw-r--r--source/blender/gpu/tests/gpu_testing.cc1
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();
}