diff --git a/src/gpu/GrTextureProxy.cpp b/src/gpu/GrTextureProxy.cpp index 26d95aba61..2d2f766221 100644 --- a/src/gpu/GrTextureProxy.cpp +++ b/src/gpu/GrTextureProxy.cpp @@ -149,9 +149,10 @@ GrSamplerState::Filter GrTextureProxy::HighestFilterMode(GrTextureType textureTy bool GrTextureProxy::ProxiesAreCompatibleAsDynamicState(const GrSurfaceProxy* first, const GrSurfaceProxy* second) { - // In order to be compatible, the proxies should also have the same texture type, but since - // that is owned by the backend format, the formats being equal is sufficient. + // In order to be compatible, the proxies should also have the same texture type. This is + // checked explicitly since the GrBackendFormat == operator does not compare texture type return first->config() == second->config() && + first->backendFormat().textureType() == second->backendFormat().textureType() && first->backendFormat() == second->backendFormat(); }