Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp |
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
index 6c7ef4a61200aa725abc1486c827a51c0fb337a0..7a45e6e1f6f2b6a5a9a0bd851ccf2a171882ae6d 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
@@ -1347,6 +1347,15 @@ void WebGLRenderingContextBase::bufferSubDataImpl(GLenum target, long long offse |
webContext()->bufferSubData(target, static_cast<GLintptr>(offset), size, data); |
} |
+void WebGLRenderingContextBase::bufferSubData(GLenum target, long long offset, const void* data, size_t byteLength) |
+{ |
+ if (isContextLost()) |
+ return; |
+ if (!data) |
+ return; |
+ bufferSubDataImpl(target, offset, byteLength, data); |
+} |
+ |
void WebGLRenderingContextBase::bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data) |
{ |
if (isContextLost()) |