diff options
author | enne <enne@chromium.org> | 2014-12-10 15:24:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-10 23:24:57 +0000 |
commit | 7d0c6eba74f2d2b1ef3e0f2aa0be1720ff735c2b (patch) | |
tree | d05076e3fb88ad07dbeed0c69fff5d6d517236ff /cc/output | |
parent | 7189d8c4af9541fb1901b238afe2ad7fbd56e872 (diff) | |
download | chromium_src-7d0c6eba74f2d2b1ef3e0f2aa0be1720ff735c2b.zip chromium_src-7d0c6eba74f2d2b1ef3e0f2aa0be1720ff735c2b.tar.gz chromium_src-7d0c6eba74f2d2b1ef3e0f2aa0be1720ff735c2b.tar.bz2 |
cc: fix blending + texture rectangle mask errors
The backdrop texture target is always GL_TEXTURE2D as it comes from
GLRenderer::GetFramebufferTexture. Only the mask sampler in the render
pass shader has a parameterizable texture target. The backdrop
shouldn't be configurable.
Depends on:
https://codereview.chromium.org/791853002/
https://codereview.chromium.org/739893004/
BUG=439621
Review URL: https://codereview.chromium.org/790963002
Cr-Commit-Position: refs/heads/master@{#307788}
Diffstat (limited to 'cc/output')
-rw-r--r-- | cc/output/shader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/output/shader.cc b/cc/output/shader.cc index e22e446..5bc7044 100644 --- a/cc/output/shader.cc +++ b/cc/output/shader.cc @@ -695,14 +695,14 @@ std::string FragmentTexBlendMode::SetBlendModeFunctions( // clang-format off static const std::string kFunctionApplyBlendMode = SHADER0( // clang-format on - uniform SamplerType s_backdropTexture; + uniform sampler2D s_backdropTexture; uniform TexCoordPrecision vec4 backdropRect; vec4 GetBackdropColor() { TexCoordPrecision vec2 bgTexCoord = gl_FragCoord.xy - backdropRect.xy; bgTexCoord.x /= backdropRect.z; bgTexCoord.y /= backdropRect.w; - return TextureLookup(s_backdropTexture, bgTexCoord); + return texture2D(s_backdropTexture, bgTexCoord); } vec4 ApplyBlendMode(vec4 src) { |