changed */
bool legacy_bindings = (!state->shprog || state->shprog->uses_legacy_variables());
+ bool legacy_textures = !state->shprog;
if(state->texturing)
- state->texturing->bind();
+ state->texturing->bind(legacy_textures);
else
{
Texturing::unbind();
if(state->texture)
- state->texture->bind_to(0);
+ state->texture->bind_to(0, legacy_textures);
else
Texture::unbind_from(0);
}