summaryrefslogtreecommitdiffstats
path: root/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-08-14 10:58:36 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-08-14 13:29:23 +0000
commitd3395bf51cc2c90e29908f96aba47ee15c291f9f (patch)
treed5b37a3cca520428a2cd921de2da76bf961c18ae /src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h
parentaaa28f680235c10804081a2467239bb22dea0f03 (diff)
Avoid initializing GraphicsContext on every frame
m_initialized is inherited from GraphicsContext, having another m_initialized in SubmissionContext is wrong. Change-Id: I431ba67c671b8854fafce769c8bfd90ba71e7441 Reviewed-by: Andy Nichols <andy.nichols@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h')
-rw-r--r--src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h b/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h
index 2881812e5..d502a8b27 100644
--- a/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h
+++ b/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h
@@ -185,7 +185,6 @@ private:
QByteArray downloadDataFromGLBuffer(Buffer *buffer, GLBuffer *b);
bool bindGLBuffer(GLBuffer *buffer, GLBuffer::Type type);
- bool m_initialized;
bool m_ownCurrent;
const unsigned int m_id;
QSurface *m_surface;