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

Unified Diff: third_party/webgl/sdk/tests/conformance/resources/webgl-test.js

Issue 7452004: Updated WebGL snapshot to 15100. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps
Patch Set: Created 9 years, 5 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/webgl/sdk/tests/conformance/resources/webgl-test.js
diff --git a/third_party/webgl/sdk/tests/conformance/resources/webgl-test.js b/third_party/webgl/sdk/tests/conformance/resources/webgl-test.js
index fe2fb3cc8ebad815e582e1687a491bb018dd9d70..4e6b16df60d9aec063546e3d7addf08488acc987 100644
--- a/third_party/webgl/sdk/tests/conformance/resources/webgl-test.js
+++ b/third_party/webgl/sdk/tests/conformance/resources/webgl-test.js
@@ -702,7 +702,7 @@ function doLoadImageTexture(ctx, image, texture)
{
ctx.enable(ctx.TEXTURE_2D);
ctx.bindTexture(ctx.TEXTURE_2D, texture);
- ctx.texImage2D(ctx.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
+ ctx.texImage2D(ctx.TEXTURE_2D, 0, ctx.RGBA, ctx.RGBA, ctx.UNSIGNED_BYTE, image);
ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_MAG_FILTER, ctx.LINEAR);
ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_MIN_FILTER, ctx.LINEAR_MIPMAP_LINEAR);
ctx.texParameteri(ctx.TEXTURE_2D, ctx.TEXTURE_WRAP_S, ctx.CLAMP_TO_EDGE);

Powered by Google App Engine
This is Rietveld 408576698