aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/rectangletexture.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-03-21 09:04:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-21 09:04:26 -0700
commit3c481001b16288f604a5279bcb4bf46c5dd2b703 (patch)
treeb66268aabe13e42992473b334b371aa3fd6b7c21 /gm/rectangletexture.cpp
parent423ba24cac329550fb20135707dbfc71686e7596 (diff)
Make the debug interface a GrGLTestInterface subclass.
The debug interface subsumes the GrDebugGL singleton which allows multiple instances. Fixes a few issues that existed before this CL (pack alignment wasn't tracked or respected, and we weren't initializing a texture id to 0 in one GM). Apparently this is not currently run on the bots. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1812323002 Review URL: https://codereview.chromium.org/1812323002
Diffstat (limited to 'gm/rectangletexture.cpp')
-rw-r--r--gm/rectangletexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/rectangletexture.cpp b/gm/rectangletexture.cpp
index e00afe97d1..43d008aaaa 100644
--- a/gm/rectangletexture.cpp
+++ b/gm/rectangletexture.cpp
@@ -87,7 +87,7 @@ protected:
// Useful for debugging whether errors result from use of RECTANGLE
// #define TARGET GR_GL_TEXTURE_2D
#define TARGET GR_GL_TEXTURE_RECTANGLE
- GrGLuint id;
+ GrGLuint id = 0;
GR_GL_CALL(gl, GenTextures(1, &id));
GR_GL_CALL(gl, BindTexture(TARGET, id));
GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MAG_FILTER,