Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: gpu/command_buffer/service/context_state_impl_autogen.h

Issue 2009073002: command_buffer: Guard on extension and profiles in the decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for GL errors in the unittest Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698