diff --git a/libopenage/renderer/opengl/renderer.cpp b/libopenage/renderer/opengl/renderer.cpp index ff3e611096..6d8d909a5b 100644 --- a/libopenage/renderer/opengl/renderer.cpp +++ b/libopenage/renderer/opengl/renderer.cpp @@ -28,7 +28,7 @@ GlRenderer::GlRenderer(const std::shared_ptr &ctx, display{std::make_shared(ctx, viewport_size[0], viewport_size[1])}, - shared_quad_vao{std::make_unique(ctx)} { + shared_quad_vao{std::make_shared(ctx)} { // color used to clear the color buffers glClearColor(0.0f, 0.0f, 0.0f, 0.0f); diff --git a/libopenage/renderer/opengl/renderer.h b/libopenage/renderer/opengl/renderer.h index b696196dcb..751af7cacc 100644 --- a/libopenage/renderer/opengl/renderer.h +++ b/libopenage/renderer/opengl/renderer.h @@ -75,7 +75,7 @@ class GlRenderer final : public Renderer { /// that bufferless quad geometry can be drawn without errors. Drawing a /// bufferless quad requires any VAO to be bound /// see https://www.khronos.org/opengl/wiki/Vertex_Rendering#Causes_of_rendering_failure - std::unique_ptr shared_quad_vao; + std::shared_ptr shared_quad_vao; }; } // namespace opengl