X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frenderer.cpp;h=50acd8e728c60e9531fd7b23dccc8a28cfb4a7c1;hp=76ac5846f2aad1e9417780e39d87f3c816a81088;hb=0f890ce60a560ba2ccc0719229be304bb597d919;hpb=7a2427020ec6ead73258aeb326dfb7e0121520f9 diff --git a/source/renderer.cpp b/source/renderer.cpp index 76ac5846..50acd8e7 100644 --- a/source/renderer.cpp +++ b/source/renderer.cpp @@ -265,14 +265,15 @@ void Renderer::apply_state() 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); }