On 25 February 2015 at 15:22, Matteo Bruni matteo.mystral@gmail.com wrote:
It's not all that clear and nice. set_tex_op() really depends on GL_(ARB|EXT)_texture_env_combine, since it's always setting GL_TEXTURE_ENV_MODE to GL_COMBINE (or GL_COMBINE4_NV) and using its knobs to set the texture color or alpha operation state (and those include the ADD setting for the COMBINE pname).
Right, we actually depend on at least texture_env_combine in practice and that adds the ADD operation by itself. In theory we could perhaps use texture_env_add when texture_env_combine isn't available, but it doesn't seem worth it at this point.