Index: gpu/command_buffer/service/context_state_impl_autogen.h |
diff --git a/gpu/command_buffer/service/context_state_impl_autogen.h b/gpu/command_buffer/service/context_state_impl_autogen.h |
index c7d7eb1dc924071434bf1f2d626d32b30c5bc015..9ce5953ba83205289a5de54e384470829dc8d8b8 100644 |
--- a/gpu/command_buffer/service/context_state_impl_autogen.h |
+++ b/gpu/command_buffer/service/context_state_impl_autogen.h |
@@ -288,8 +288,8 @@ void ContextState::InitState(const ContextState* prev_state) const { |
glDepthRange(z_near, z_far); |
if ((front_face != prev_state->front_face)) |
glFrontFace(front_face); |
- if (prev_state->hint_generate_mipmap != hint_generate_mipmap) { |
- if (!feature_info_->gl_version_info().is_desktop_core_profile) { |
+ if (!feature_info_->gl_version_info().is_desktop_core_profile) { |
+ if (prev_state->hint_generate_mipmap != hint_generate_mipmap) { |
glHint(GL_GENERATE_MIPMAP_HINT, hint_generate_mipmap); |
} |
} |