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

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

Issue 1824433002: Remove getError() and synthesizeGLError() from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-tplus
Patch Set: Created 4 years, 9 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 b0ebb353c0e80be66f17d517eaa0c247f61041c1..69073756e4b5386c91f3f24e88a16923b29811ea 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -2691,7 +2691,7 @@ void WebGL2RenderingContextBase::bindVertexArray(ScriptState* scriptState, WebGL
return;
if (vertexArray && (vertexArray->isDeleted() || !vertexArray->validate(0, this))) {
- webContext()->synthesizeGLError(GL_INVALID_OPERATION);
+ synthesizeGLError(GL_INVALID_OPERATION, "bindVertexArray", "invalid vertexArray");
return;
}

Powered by Google App Engine
This is Rietveld 408576698