| Index: gpu/command_buffer/service/texture_definition.cc
|
| diff --git a/gpu/command_buffer/service/texture_definition.cc b/gpu/command_buffer/service/texture_definition.cc
|
| index ed3e8b62023ee636c6febfd12a9a90e3ac4e4460..50a90b797c38cb0b58740265de99911919805123 100644
|
| --- a/gpu/command_buffer/service/texture_definition.cc
|
| +++ b/gpu/command_buffer/service/texture_definition.cc
|
| @@ -402,10 +402,10 @@ void TextureDefinition::UpdateTextureInternal(Texture* texture) const {
|
|
|
| texture->target_ = target_;
|
| texture->SetImmutable(immutable_);
|
| - texture->min_filter_ = min_filter_;
|
| - texture->mag_filter_ = mag_filter_;
|
| - texture->wrap_s_ = wrap_s_;
|
| - texture->wrap_t_ = wrap_t_;
|
| + texture->sampler_state_.min_filter = min_filter_;
|
| + texture->sampler_state_.mag_filter = mag_filter_;
|
| + texture->sampler_state_.wrap_s = wrap_s_;
|
| + texture->sampler_state_.wrap_t = wrap_t_;
|
| texture->usage_ = usage_;
|
| }
|
|
|
| @@ -435,10 +435,10 @@ void TextureDefinition::UpdateTexture(Texture* texture) const {
|
|
|
| bool TextureDefinition::Matches(const Texture* texture) const {
|
| DCHECK(target_ == texture->target());
|
| - if (texture->min_filter_ != min_filter_ ||
|
| - texture->mag_filter_ != mag_filter_ ||
|
| - texture->wrap_s_ != wrap_s_ ||
|
| - texture->wrap_t_ != wrap_t_ ||
|
| + if (texture->sampler_state_.min_filter != min_filter_ ||
|
| + texture->sampler_state_.mag_filter != mag_filter_ ||
|
| + texture->sampler_state_.wrap_s != wrap_s_ ||
|
| + texture->sampler_state_.wrap_t != wrap_t_ ||
|
| texture->SafeToRenderFrom() != SafeToRenderFrom()) {
|
| return false;
|
| }
|
|
|