Skip to content

Commit

Permalink
webgl: Mark float/half-float textures as filterable in webgl2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed May 13, 2020
1 parent 887d5f9 commit 3abaff8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/script/dom/webgl_extensions/extensions.rs
Expand Up @@ -106,6 +106,7 @@ impl WebGLExtensionFeatures {
disabled_get_parameter_names,
disabled_get_tex_parameter_names,
disabled_get_vertex_attrib_names,
not_filterable_tex_types,
element_index_uint_enabled,
blend_minmax_enabled,
) = match webgl_version {
Expand All @@ -123,6 +124,7 @@ impl WebGLExtensionFeatures {
.iter()
.cloned()
.collect(),
DEFAULT_NOT_FILTERABLE_TEX_TYPES.iter().cloned().collect(),
false,
false,
),
Expand All @@ -137,14 +139,15 @@ impl WebGLExtensionFeatures {
.cloned()
.collect(),
Default::default(),
Default::default(),
true,
true,
),
};
Self {
gl_extensions: Default::default(),
disabled_tex_types,
not_filterable_tex_types: DEFAULT_NOT_FILTERABLE_TEX_TYPES.iter().cloned().collect(),
not_filterable_tex_types,
effective_tex_internal_formats: Default::default(),
hint_targets: Default::default(),
disabled_get_parameter_names,
Expand Down

0 comments on commit 3abaff8

Please sign in to comment.