X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fpipelinestate.cpp;h=318522d6563b547eebcf6b823ed3e5ddbb9c0305;hb=7b569bbfcfb65d8d88b47ac42ee1df6a7d27e784;hp=21cb64f9f51bb88c5f7ccd02b4a5f65fb4006daf;hpb=bea2bcf1aa353b1dd8d1728931ef0508677bd2c6;p=libs%2Fgl.git diff --git a/source/core/pipelinestate.cpp b/source/core/pipelinestate.cpp index 21cb64f9..318522d6 100644 --- a/source/core/pipelinestate.cpp +++ b/source/core/pipelinestate.cpp @@ -162,6 +162,9 @@ void PipelineState::set_blend(const Blend *b) void PipelineState::apply() const { + if(!last_applied) + Texture::unbind_scratch(); + apply(this==last_applied ? changes : ~0U); }