summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-11-15 14:05:43 +0100
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-11-15 14:30:08 +0000
commitb5316079a8580f15c882c2972ed03fceb0378d51 (patch)
tree3d44e49a8eb9edd39fa808c4f5203038dd4fcc84
parent37addd6b3693c20ce0ffaff81d21d221bb1c34ac (diff)
Don't send size as a bufferSubData parameterv5.10.0-rc3v5.10.0-rc2v5.10.0-rc1v5.10.0
The 'size' is not required as a parameter, it's handled by the 'ArrayBuffer' directly. This fixes the WebGL 'bufferSubData' function which has a different argument list than 'glBufferSubData'. Change-Id: I561de68057d456ac3733ca0e0086e8b874b7e8ea Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/plugins/platforms/webgl/qwebglcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/webgl/qwebglcontext.cpp b/src/plugins/platforms/webgl/qwebglcontext.cpp
index 88f21f0..5e92565 100644
--- a/src/plugins/platforms/webgl/qwebglcontext.cpp
+++ b/src/plugins/platforms/webgl/qwebglcontext.cpp
@@ -546,7 +546,7 @@ QWEBGL_FUNCTION(bufferData, void, glBufferData,
QWEBGL_FUNCTION(bufferSubData, void, glBufferSubData,
(GLenum) target, (GLintptr) offset, (GLsizeiptr) size, (const void *) data)
{
- postEvent<&bufferSubData>(target, int(size), int(offset), QByteArray((const char *)data, size));
+ postEvent<&bufferSubData>(target, int(offset), QByteArray((const char *)data, size));
}
QWEBGL_FUNCTION(checkFramebufferStatus, GLenum, glCheckFramebufferStatus,