summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhigles2_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rhi/qrhigles2_p_p.h')
-rw-r--r--src/gui/rhi/qrhigles2_p_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhigles2_p_p.h b/src/gui/rhi/qrhigles2_p_p.h
index d5087b92ed..8a0e0ec2a1 100644
--- a/src/gui/rhi/qrhigles2_p_p.h
+++ b/src/gui/rhi/qrhigles2_p_p.h
@@ -55,6 +55,7 @@
#include "qrhi_p_p.h"
#include "qshaderdescription_p.h"
#include <qopengl.h>
+#include <QByteArray>
#include <QSurface>
QT_BEGIN_NAMESPACE
@@ -74,7 +75,7 @@ struct QGles2Buffer : public QRhiBuffer
int nonZeroSize = 0;
GLuint buffer = 0;
GLenum targetForDataOps;
- char *data = nullptr;
+ QByteArray data;
enum Access {
AccessNone,
AccessVertex,