summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/opengl/qopenglbuffer.h')
-rw-r--r--src/gui/opengl/qopenglbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopenglbuffer.h b/src/gui/opengl/qopenglbuffer.h
index 847c1efaa0..ca3d85d8e0 100644
--- a/src/gui/opengl/qopenglbuffer.h
+++ b/src/gui/opengl/qopenglbuffer.h
@@ -118,7 +118,7 @@ public:
void write(int offset, const void *data, int count);
void allocate(const void *data, int count);
- inline void allocate(int count) { allocate(0, count); }
+ inline void allocate(int count) { allocate(Q_NULLPTR, count); }
void *map(QOpenGLBuffer::Access access);
void *mapRange(int offset, int count, QOpenGLBuffer::RangeAccessFlags access);