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

Unified Diff: Source/core/html/canvas/WebGLDebugShaders.cpp

Issue 17230006: Implement WEBGL_shared_resources Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
« no previous file with comments | « Source/core/html/canvas/WebGLContextObject.h ('k') | Source/core/html/canvas/WebGLExtension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLDebugShaders.cpp
diff --git a/Source/core/html/canvas/WebGLDebugShaders.cpp b/Source/core/html/canvas/WebGLDebugShaders.cpp
index ea33aa231f4e078d9ace9e2e9cd09697297927f1..46812d97b360c6ae6da7a6a5f4d2d81fc6ef8cee 100644
--- a/Source/core/html/canvas/WebGLDebugShaders.cpp
+++ b/Source/core/html/canvas/WebGLDebugShaders.cpp
@@ -60,7 +60,7 @@ String WebGLDebugShaders::getTranslatedShaderSource(WebGLShader* shader, Excepti
UNUSED_PARAM(ec);
if (isLost())
return String();
- if (!m_context->validateWebGLObject("getTranslatedShaderSource", shader))
+ if (!m_context->validateWebGLSharedObject("getTranslatedShaderSource", shader, WebGLSharedObject::ReadOnly))
return "";
return m_context->graphicsContext3D()->getExtensions()->getTranslatedShaderSourceANGLE(shader->object());
}
« no previous file with comments | « Source/core/html/canvas/WebGLContextObject.h ('k') | Source/core/html/canvas/WebGLExtension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698