Enable Vulkan backend in Interface

This commit is contained in:
Karol Suprynowicz 2024-08-10 17:51:22 +02:00
parent 9316b3f461
commit 731b78e54e

View file

@ -55,7 +55,11 @@ void GraphicsEngine::initializeGPU(GLWidget* glwidget) {
// and the GPU backend will make things like the VAO which cannot be shared across
// contexts
glwidget->makeCurrent();
#ifdef USE_GL
gpu::Context::init<gpu::gl::GLBackend>();
#else
gpu::Context::init<gpu::vulkan::VKBackend>();
#endif
glwidget->makeCurrent();
_gpuContext = std::make_shared<gpu::Context>();