diff options
Diffstat (limited to 'content/common/gpu/client/gl_helper_scaling.cc')
-rw-r--r-- | content/common/gpu/client/gl_helper_scaling.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/common/gpu/client/gl_helper_scaling.cc b/content/common/gpu/client/gl_helper_scaling.cc index 220845e..7de3fc0 100644 --- a/content/common/gpu/client/gl_helper_scaling.cc +++ b/content/common/gpu/client/gl_helper_scaling.cc @@ -489,7 +489,7 @@ GLHelperScaling::GetShaderProgram(ShaderType type, bool swizzle) { ShaderProgramKeyType key(type, swizzle); scoped_refptr<ShaderProgram>& cache_entry(shader_programs_[key]); - if (!cache_entry) { + if (!cache_entry.get()) { cache_entry = new ShaderProgram(context_, helper_); std::basic_string<WebKit::WGC3Dchar> vertex_program; std::basic_string<WebKit::WGC3Dchar> fragment_program; |