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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 1106833002: Emulate GL_PRIMITIVE_RESTART_FIXED_INDEX: part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 5 years, 8 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index c6220bbbc13af6573635b089220474277ab0289d..098ab641deb7d56b766c32b1adea96ab9af9d7de 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -161,7 +161,8 @@ FeatureInfo::FeatureFlags::FeatureFlags()
blend_equation_advanced(false),
blend_equation_advanced_coherent(false),
ext_texture_rg(false),
- enable_subscribe_uniform(false) {
+ enable_subscribe_uniform(false),
+ emulate_primitive_restart_fixed_index(false) {
}
FeatureInfo::Workarounds::Workarounds() :
@@ -1097,6 +1098,13 @@ void FeatureInfo::InitializeFeatures() {
gfx::GLFenceEGL::SetIgnoreFailures();
}
#endif
+
+ if (gl_version_info_->IsLowerThanGL(4, 3)) {
+ // crbug.com/481184.
+ // GL_PRIMITIVE_RESTART_FIXED_INDEX is only available on Desktop GL 4.3+,
+ // but we emulate ES 3.0 on top of Desktop GL 4.2+.
+ feature_flags_.emulate_primitive_restart_fixed_index = true;
+ }
}
bool FeatureInfo::IsES3Capable() const {
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698