mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-18 13:10:42 +01:00
18 lines
939 B
Diff
18 lines
939 B
Diff
diff --git gpu/command_buffer/service/feature_info.cc gpu/command_buffer/service/feature_info.cc
|
|
index 32e72c6..712d3ac 100644
|
|
--- gpu/command_buffer/service/feature_info.cc
|
|
+++ gpu/command_buffer/service/feature_info.cc
|
|
@@ -1493,8 +1493,10 @@ void FeatureInfo::InitializeFloatAndHalfFloatFeatures(
|
|
}
|
|
enable_ext_color_buffer_float = full_float_support;
|
|
}
|
|
- // Likewise for EXT_color_buffer_half_float on ES2 contexts.
|
|
- if (IsWebGL1OrES2Context() && !enable_ext_color_buffer_half_float) {
|
|
+ // Likewise for EXT_color_buffer_half_float on ES2 contexts. On desktop,
|
|
+ // require at least GL 3.0, to ensure that all formats are defined.
|
|
+ if (IsWebGL1OrES2Context() && !enable_ext_color_buffer_half_float &&
|
|
+ (gl_version_info_->is_es || gl_version_info_->IsAtLeastGL(3, 0))) {
|
|
bool full_half_float_support = true;
|
|
GLenum internal_formats[] = {
|
|
GL_R16F, GL_RG16F, GL_RGBA16F,
|