Enable CLog for GPU test cases.

This commit is contained in:
Jeroen Bakker 2021-05-10 07:59:10 +02:00
parent 2f61602497
commit c63d40c165
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,9 @@
#include "testing/testing.h"
#include "CLG_log.h"
#include "CLG_log.h"
#include "GPU_context.h"
#include "GPU_init_exit.h"
#include "gpu_testing.hh"
@ -13,6 +16,7 @@ namespace blender::gpu {
void GPUTest::SetUp()
{
GHOST_GLSettings glSettings = {0};
CLG_init();
ghost_system = GHOST_CreateSystem();
ghost_context = GHOST_CreateOpenGLContext(ghost_system, glSettings);
context = GPU_context_create(nullptr);
@ -26,6 +30,7 @@ void GPUTest::TearDown()
GPU_context_discard(context);
GHOST_DisposeOpenGLContext(ghost_system, ghost_context);
GHOST_DisposeSystem(ghost_system);
CLG_exit();
}
} // namespace blender::gpu