mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-23 07:50:44 +01:00
Linux: Fix DCHECK during GPU feature info detection.
This commit is contained in:
parent
5b9fb7e4ec
commit
3d944a803e
@ -312,7 +312,7 @@ patches = [
|
||||
'name': 'mac_build_711670',
|
||||
},
|
||||
{
|
||||
# Linux: Remove DCHECK during GPU feature info detection.
|
||||
# Linux: Fix DCHECK during GPU feature info detection.
|
||||
# https://bugs.chromium.org/p/chromium/issues/detail?id=699278
|
||||
'name': 'gpu_feature_info_699278',
|
||||
},
|
||||
|
@ -1,13 +1,17 @@
|
||||
diff --git gpu/command_buffer/service/feature_info.cc gpu/command_buffer/service/feature_info.cc
|
||||
index 32e72c6..495ccdd 100644
|
||||
index 32e72c6..712d3ac 100644
|
||||
--- gpu/command_buffer/service/feature_info.cc
|
||||
+++ gpu/command_buffer/service/feature_info.cc
|
||||
@@ -1524,8 +1524,6 @@ void FeatureInfo::InitializeFloatAndHalfFloatFeatures(
|
||||
glBindFramebufferEXT(GL_FRAMEBUFFER, static_cast<GLuint>(fb_binding));
|
||||
glBindTexture(GL_TEXTURE_2D, static_cast<GLuint>(tex_binding));
|
||||
|
||||
- DCHECK_EQ(glGetError(), static_cast<GLuint>(GL_NO_ERROR));
|
||||
-
|
||||
if (status_rgba == GL_FRAMEBUFFER_COMPLETE) {
|
||||
feature_flags_.chromium_color_buffer_float_rgba = true;
|
||||
if (!disallowed_features_.chromium_color_buffer_float_rgba)
|
||||
@@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user