diff options
author | 2011-05-20 14:13:56 +0000 | |
---|---|---|
committer | 2011-05-20 14:13:56 +0000 | |
commit | 271cffc77bd2fcb3458559e509634442517ca1e9 (patch) | |
tree | 694551c3f27e547710ad5779dd010f486ee96e25 /gpu/src/GrGpuGLFixed.cpp | |
parent | 3c14d0f3d1b467dc3776669b0fc48cb463a20d41 (diff) |
Add dual source blending support for proper blending with coverage.
Review URL: http://codereview.appspot.com/4535088/
git-svn-id: http://skia.googlecode.com/svn/trunk@1390 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGpuGLFixed.cpp')
-rw-r--r-- | gpu/src/GrGpuGLFixed.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gpu/src/GrGpuGLFixed.cpp b/gpu/src/GrGpuGLFixed.cpp index e197a82533..65229dc0a1 100644 --- a/gpu/src/GrGpuGLFixed.cpp +++ b/gpu/src/GrGpuGLFixed.cpp @@ -57,6 +57,7 @@ static const GrGLenum gMatrixMode2Enum[] = { GrGpuGLFixed::GrGpuGLFixed() { f4X4DownsampleFilterSupport = false; + fDualSourceBlendingSupport = false; } GrGpuGLFixed::~GrGpuGLFixed() { @@ -136,8 +137,8 @@ bool GrGpuGLFixed::flushGraphicsState(GrPrimitiveType type) { } if (GR_GL_SUPPORT_ES1) { - if (BlendCoefReferencesConstant(fCurrDrawState.fSrcBlend) || - BlendCoefReferencesConstant(fCurrDrawState.fDstBlend)) { + if (BlendCoeffReferencesConstant(fCurrDrawState.fSrcBlend) || + BlendCoeffReferencesConstant(fCurrDrawState.fDstBlend)) { unimpl("ES1 doesn't support blend constant"); return false; } @@ -147,6 +148,8 @@ bool GrGpuGLFixed::flushGraphicsState(GrPrimitiveType type) { return false; } + this->flushBlend(type, fCurrDrawState.fSrcBlend, fCurrDrawState.fDstBlend); + if (fDirtyFlags.fRenderTargetChanged) { flushProjectionMatrix(); } |