Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 2610393003: Fix the bug for VertexAttrib{I}Pointer when no array buffer bound (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 84e495c83a8bab57ebcee4c571278082f274aee2..2f5fd1b14d28cc72d2cf4f2250a4585078da52a1 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;
}

Powered by Google App Engine
This is Rietveld 408576698