summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicscontext.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-06-30 16:29:47 +0200
committerSean Harmer <sean.harmer@kdab.com>2017-07-06 09:23:54 +0000
commit17977c51d765978cf3ae9fe71cf10b718b9f17be (patch)
treed7ecf303577594efac3d34da6c8b3727c18527b7 /src/render/graphicshelpers/graphicscontext.cpp
parentd6bd48a947cbcae7da6c7cae00e5dddc954fa419 (diff)
Add uniform buffer support for GLES 3.0+
Also, GLES 3 only has glMapBufferRange so pass in a size to mapBuffer() from now on. Task-number: QTBUG-61729 Change-Id: I0a049811a6daff5dd6a83d535509f4266eb01c53 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext.cpp')
-rw-r--r--src/render/graphicshelpers/graphicscontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp
index 9db509771..0798d6a0c 100644
--- a/src/render/graphicshelpers/graphicscontext.cpp
+++ b/src/render/graphicshelpers/graphicscontext.cpp
@@ -1105,9 +1105,9 @@ GLboolean GraphicsContext::unmapBuffer(GLenum target)
return m_glHelper->unmapBuffer(target);
}
-char *GraphicsContext::mapBuffer(GLenum target)
+char *GraphicsContext::mapBuffer(GLenum target, GLsizeiptr size)
{
- return m_glHelper->mapBuffer(target);
+ return m_glHelper->mapBuffer(target, size);
}
void GraphicsContext::enablei(GLenum cap, GLuint index)