Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
index 3f07acb60c3703e52bc1ff9a640f0bb648afe07a..be8a78cdc7d435f36cd71518609d7b97b70114b0 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
@@ -2439,9 +2439,9 @@ void WebGL2RenderingContextBase::vertexAttribIPointer(GLuint index, |
} |
if (!validateValueFitNonNegInt32("vertexAttribIPointer", "offset", offset)) |
return; |
- if (!m_boundArrayBuffer) { |
+ if (!m_boundArrayBuffer && offset != 0) { |
synthesizeGLError(GL_INVALID_OPERATION, "vertexAttribIPointer", |
- "no bound ARRAY_BUFFER"); |
+ "no ARRAY_BUFFER is bound and offset is non-zero"); |
return; |
} |