Index: Source/WebCore/html/canvas/WebGLRenderingContext.cpp |
=================================================================== |
--- Source/WebCore/html/canvas/WebGLRenderingContext.cpp (revision 78263) |
+++ Source/WebCore/html/canvas/WebGLRenderingContext.cpp (working copy) |
@@ -1435,6 +1435,11 @@ |
if (!count) |
return; |
+ if (!m_boundElementArrayBuffer) { |
+ m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION); |
+ return; |
+ } |
+ |
int numElements = 0; |
if (!isErrorGeneratedOnOutOfBoundsAccesses()) { |
// Ensure we have a valid rendering state |