mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:17:43 +00:00
LibGL+LibGPU+LibSoftGPU: Report texture clamp to edge support
This commit is contained in:
parent
087f565700
commit
1aa1c89afa
3 changed files with 5 additions and 0 deletions
|
@ -926,6 +926,9 @@ void GLContext::build_extension_string()
|
||||||
if (m_device_info.num_texture_units > 1)
|
if (m_device_info.num_texture_units > 1)
|
||||||
extensions.append("GL_ARB_multitexture"sv);
|
extensions.append("GL_ARB_multitexture"sv);
|
||||||
|
|
||||||
|
if (m_device_info.supports_texture_clamp_to_edge)
|
||||||
|
extensions.append("GL_EXT_texture_edge_clamp"sv);
|
||||||
|
|
||||||
if (m_device_info.supports_texture_env_add) {
|
if (m_device_info.supports_texture_env_add) {
|
||||||
extensions.append("GL_ARB_texture_env_add"sv);
|
extensions.append("GL_ARB_texture_env_add"sv);
|
||||||
extensions.append("GL_EXT_texture_env_add"sv);
|
extensions.append("GL_EXT_texture_env_add"sv);
|
||||||
|
|
|
@ -19,6 +19,7 @@ struct DeviceInfo final {
|
||||||
float max_texture_lod_bias;
|
float max_texture_lod_bias;
|
||||||
u8 stencil_bits;
|
u8 stencil_bits;
|
||||||
bool supports_npot_textures;
|
bool supports_npot_textures;
|
||||||
|
bool supports_texture_clamp_to_edge;
|
||||||
bool supports_texture_env_add;
|
bool supports_texture_env_add;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -804,6 +804,7 @@ GPU::DeviceInfo Device::info() const
|
||||||
.max_texture_lod_bias = MAX_TEXTURE_LOD_BIAS,
|
.max_texture_lod_bias = MAX_TEXTURE_LOD_BIAS,
|
||||||
.stencil_bits = sizeof(GPU::StencilType) * 8,
|
.stencil_bits = sizeof(GPU::StencilType) * 8,
|
||||||
.supports_npot_textures = true,
|
.supports_npot_textures = true,
|
||||||
|
.supports_texture_clamp_to_edge = true,
|
||||||
.supports_texture_env_add = true,
|
.supports_texture_env_add = true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue