Commit: c865577643901c4da9161849fa715e54468de638 Author: Jeroen Bakker Date: Mon Nov 8 15:49:51 2021 +0100 Branches: master https://developer.blender.org/rBc865577643901c4da9161849fa715e54468de638
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. =================================================================== M source/blender/gpu/tests/gpu_testing.cc =================================================================== 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(); } _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
