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

LibGL+LibSoftGPU: Add GL_ADD Texture Environment

This commit is contained in:
Jesse Buhagiar 2022-03-09 21:27:50 +11:00 committed by Andreas Kling
parent e34f199997
commit c9f44c746a
4 changed files with 13 additions and 0 deletions

View file

@ -2057,6 +2057,7 @@ void GLContext::gl_tex_env(GLenum target, GLenum pname, GLfloat param)
case GL_MODULATE:
case GL_REPLACE:
case GL_DECAL:
case GL_ADD:
m_active_texture_unit->set_env_mode(param_enum);
m_sampler_config_is_dirty = true;
break;
@ -3013,6 +3014,9 @@ void GLContext::sync_device_sampler_config()
case GL_DECAL:
config.fixed_function_texture_env_mode = GPU::TextureEnvMode::Decal;
break;
case GL_ADD:
config.fixed_function_texture_env_mode = GPU::TextureEnvMode::Add;
break;
default:
VERIFY_NOT_REACHED();
}