History

Enable Vulkan backend in Interface

Karol Suprynowicz committed 2 years ago

Commit ed8af431 parent 6c3e2a91 file · +4 −0Browse files

Showing the changes to interface/src/graphics/GraphicsEngine.cpp (1 of 1 file). Show all

Unified · Split

interface/src/graphics/GraphicsEngine.cpp+4−0
@@ -57,7 +57,11 @@ void GraphicsEngine::initializeGPU(GLWidget* glwidget) { · 56 unmodified lines
57 // and the GPU backend will make things like the VAO which cannot be shared across57 // and the GPU backend will make things like the VAO which cannot be shared across
58 // contexts58 // contexts
59 glwidget->makeCurrent();59 glwidget->makeCurrent();
60#ifdef USE_GL
60 gpu::Context::init<gpu::gl::GLBackend>();61 gpu::Context::init<gpu::gl::GLBackend>();
62#else
63 gpu::Context::init<gpu::vulkan::VKBackend>();
64#endif
61 glwidget->makeCurrent();65 glwidget->makeCurrent();
62 _gpuContext = std::make_shared<gpu::Context>();66 _gpuContext = std::make_shared<gpu::Context>();
63 67