]> git.tdb.fi Git - libs/gl.git/commit
Treat standard and camera shader data specially in Renderer
authorMikko Rasa <tdb@tdb.fi>
Sun, 13 Mar 2022 07:34:18 +0000 (09:34 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 13 Mar 2022 07:34:18 +0000 (09:34 +0200)
commit7b1a814276741e1aff68c6e9066537374c19c283
tree824a5333bc0945f851424bf52cd9e08b02ac404e
parent1cc48c919cc47895ea5ae23199c20dfe909b4e4c
Treat standard and camera shader data specially in Renderer

Don't add them to the generic shdata stack.  Some effects apply their own
camera, which led to two overlapping ProgramData objects on the stack.
Although the results were correct, this caused PipelineState to flag the
uniform blocks as dirty every frame and do unnecessary work.
source/render/renderer.cpp
source/render/renderer.h