summaryrefslogtreecommitdiffstats
path: root/src/runtime/dragon/dragonactivatedsurface_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/dragon/dragonactivatedsurface_p.h')
-rw-r--r--src/runtime/dragon/dragonactivatedsurface_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/dragon/dragonactivatedsurface_p.h b/src/runtime/dragon/dragonactivatedsurface_p.h
index 65e8fe0..dbccf57 100644
--- a/src/runtime/dragon/dragonactivatedsurface_p.h
+++ b/src/runtime/dragon/dragonactivatedsurface_p.h
@@ -89,9 +89,10 @@ class DrawContext
public:
~DrawContext();
private:
- DrawContext(QOpenGLContext *openGLContext, QSurface *surface);
+ DrawContext(QOpenGLContext *openGLContext, QSurface *surface, bool autoSwapBuffers);
QOpenGLContext *m_openGLContext = nullptr;
QSurface *m_surface = nullptr;
+ bool m_autoSwapBuffers = true;
friend class ActivatedSurface;
};
@@ -160,7 +161,7 @@ public:
// Parameter/uniform functions
void applyUniform(const ShaderUniform &description, const UniformValue &v);
- DrawContext beginDrawing();
+ DrawContext beginDrawing(bool autoSwapBuffers);
void blitFramebuffer(const BlitFramebufferInfo &blitFramebufferInfo, uint defaultFboId, const MutableContainer<GLTexture> &glTextures);
private: