diff --git a/Userland/Libraries/LibGL/GLContext.cpp b/Userland/Libraries/LibGL/GLContext.cpp index 161a0e79b8..a60a792636 100644 --- a/Userland/Libraries/LibGL/GLContext.cpp +++ b/Userland/Libraries/LibGL/GLContext.cpp @@ -926,6 +926,9 @@ void GLContext::build_extension_string() if (m_device_info.num_texture_units > 1) 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) { extensions.append("GL_ARB_texture_env_add"sv); extensions.append("GL_EXT_texture_env_add"sv); diff --git a/Userland/Libraries/LibGPU/DeviceInfo.h b/Userland/Libraries/LibGPU/DeviceInfo.h index 6e39a0001e..36bb2a552b 100644 --- a/Userland/Libraries/LibGPU/DeviceInfo.h +++ b/Userland/Libraries/LibGPU/DeviceInfo.h @@ -19,6 +19,7 @@ struct DeviceInfo final { float max_texture_lod_bias; u8 stencil_bits; bool supports_npot_textures; + bool supports_texture_clamp_to_edge; bool supports_texture_env_add; }; diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index e353036750..4c3669bc0a 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -804,6 +804,7 @@ GPU::DeviceInfo Device::info() const .max_texture_lod_bias = MAX_TEXTURE_LOD_BIAS, .stencil_bits = sizeof(GPU::StencilType) * 8, .supports_npot_textures = true, + .supports_texture_clamp_to_edge = true, .supports_texture_env_add = true, }; }