]> git.tdb.fi Git - libs/gl.git/commit
Simplify pipeline state management
authorMikko Rasa <tdb@tdb.fi>
Mon, 13 Sep 2021 21:17:12 +0000 (00:17 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 13 Sep 2021 22:31:28 +0000 (01:31 +0300)
commit3e38e8a7bfffb0b6d622b849b402f4f04a7536c4
tree54e0b82f8270f7f5844a1b0f630ce71394bd62bc
parent91d87a3ecae2b21a87829442d82e65f071009e92
Simplify pipeline state management

Instead of unbinding things immediately, defer it to when the state is
cleared.  This results in less binding calls overall.  The only reason
to unbind anything is to allow those objects to be destroyed, and that
shouldn't happen in the middle of rendering anyway.
source/core/pipelinestate.cpp
source/core/pipelinestate.h