1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

LibGL+LibGPU+LibSoftGPU: Report texture env add extension

The Quake 3 port makes use of this extension to determine a more
efficient multitexturing strategy. Since LibSoftGPU supports it, let's
report the extension in LibGL. :^)
This commit is contained in:
Jelle Raaijmakers 2022-08-29 00:10:04 +02:00 committed by Linus Groh
parent adf85c719a
commit 94f016b363
3 changed files with 7 additions and 0 deletions

View file

@ -933,6 +933,11 @@ 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_env_add) {
extensions.append("GL_ARB_texture_env_add"sv);
extensions.append("GL_EXT_texture_env_add"sv);
}
m_extensions = String::join(' ', extensions);
}