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