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

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: suppress webgl cts expectation for passthrough cmd buffer 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 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;
}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698