aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrXferProcessor.cpp
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-06-08 13:43:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-08 13:43:33 -0700
commit827bae10f2b78bedfd1aa8faf2f006af7bbaf8d2 (patch)
treed82f07efa41c9f658c6bb0f2c0d441642f969d67 /src/gpu/GrXferProcessor.cpp
parent788840168f819240b2ad61d693149cd81ee24302 (diff)
Fix regression in GrXferProcessor
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r--src/gpu/GrXferProcessor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp
index 837e13e2a6..67c5dd81a2 100644
--- a/src/gpu/GrXferProcessor.cpp
+++ b/src/gpu/GrXferProcessor.cpp
@@ -67,11 +67,11 @@ void GrXferProcessor::getBlendInfo(BlendInfo* blendInfo) const {
void GrXferProcessor::getGLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const {
uint32_t key = this->willReadDstColor() ? 0x1 : 0x0;
if (key) {
- if (this->getDstTexture()) {
+ if (const GrTexture* dstTexture = this->getDstTexture()) {
key |= 0x2;
- }
- if (kTopLeft_GrSurfaceOrigin == this->getDstTexture()->origin()) {
- key |= 0x4;
+ if (kTopLeft_GrSurfaceOrigin == dstTexture->origin()) {
+ key |= 0x4;
+ }
}
if (this->readsCoverage()) {
key |= 0x8;