| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 9605781d34d62f625fcb2c46efeff0d8238ed9b1..191194eb509904ee623d95888b58e8acf0dcc0d5 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -389,6 +389,15 @@ bool GrDrawTarget::checkDraw(GrPrimitiveType type, int startVertex,
|
|
|
| SkASSERT(NULL != drawState.getRenderTarget());
|
|
|
| + if (drawState.hasGeometryProcessor()) {
|
| + const GrEffect* effect = drawState.getGeometryProcessor()->getEffect();
|
| + int numTextures = effect->numTextures();
|
| + for (int t = 0; t < numTextures; ++t) {
|
| + GrTexture* texture = effect->texture(t);
|
| + SkASSERT(texture->asRenderTarget() != drawState.getRenderTarget());
|
| + }
|
| + }
|
| +
|
| for (int s = 0; s < drawState.numColorStages(); ++s) {
|
| const GrEffect* effect = drawState.getColorStage(s).getEffect();
|
| int numTextures = effect->numTextures();
|
|
|