mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 01:22:21 +02:00
Enable Vulkan backend in Interface
This commit is contained in:
parent
9316b3f461
commit
731b78e54e
1 changed files with 4 additions and 0 deletions
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue