mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
webgl: Mark float/half-float textures as filterable in webgl2.
This commit is contained in:
parent
887d5f9417
commit
3abaff85f3
1 changed files with 4 additions and 1 deletions
|
@ -106,6 +106,7 @@ impl WebGLExtensionFeatures {
|
||||||
disabled_get_parameter_names,
|
disabled_get_parameter_names,
|
||||||
disabled_get_tex_parameter_names,
|
disabled_get_tex_parameter_names,
|
||||||
disabled_get_vertex_attrib_names,
|
disabled_get_vertex_attrib_names,
|
||||||
|
not_filterable_tex_types,
|
||||||
element_index_uint_enabled,
|
element_index_uint_enabled,
|
||||||
blend_minmax_enabled,
|
blend_minmax_enabled,
|
||||||
) = match webgl_version {
|
) = match webgl_version {
|
||||||
|
@ -123,6 +124,7 @@ impl WebGLExtensionFeatures {
|
||||||
.iter()
|
.iter()
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect(),
|
.collect(),
|
||||||
|
DEFAULT_NOT_FILTERABLE_TEX_TYPES.iter().cloned().collect(),
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
@ -137,6 +139,7 @@ impl WebGLExtensionFeatures {
|
||||||
.cloned()
|
.cloned()
|
||||||
.collect(),
|
.collect(),
|
||||||
Default::default(),
|
Default::default(),
|
||||||
|
Default::default(),
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
),
|
),
|
||||||
|
@ -144,7 +147,7 @@ impl WebGLExtensionFeatures {
|
||||||
Self {
|
Self {
|
||||||
gl_extensions: Default::default(),
|
gl_extensions: Default::default(),
|
||||||
disabled_tex_types,
|
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(),
|
effective_tex_internal_formats: Default::default(),
|
||||||
hint_targets: Default::default(),
|
hint_targets: Default::default(),
|
||||||
disabled_get_parameter_names,
|
disabled_get_parameter_names,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue