summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhigles2_p_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-09-25 12:51:47 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-09-25 16:58:46 +0200
commit89f7389494c6fc917f189150e06ed1fcfaa238e8 (patch)
tree6bf6860bfe83f41917a3b7da1345f8b7c6c9ade8 /src/gui/rhi/qrhigles2_p_p.h
parentcc5287a0a99a943febe2a16362d355bab65d7678 (diff)
rhi: gl: d3d: Do not use QByteArray where there is no point
The real benefit in practice is getting rid of profilers going wild about QByteArray::begin() and similar. The actual perf. gain is fairly small. Change-Id: I25e4c762f303b41f0aaf914bc62751f3265d3cf8 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhigles2_p_p.h')
-rw-r--r--src/gui/rhi/qrhigles2_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhigles2_p_p.h b/src/gui/rhi/qrhigles2_p_p.h
index bee9b3249e..c004b7f171 100644
--- a/src/gui/rhi/qrhigles2_p_p.h
+++ b/src/gui/rhi/qrhigles2_p_p.h
@@ -68,7 +68,7 @@ struct QGles2Buffer : public QRhiBuffer
GLuint buffer = 0;
GLenum targetForDataOps;
- QByteArray ubuf;
+ char *ubuf = nullptr;
enum Access {
AccessNone,
AccessVertex,