]> git.tdb.fi Git - libs/gl.git/commit
Use a generation number to track if ProgramData has changed
authorMikko Rasa <tdb@tdb.fi>
Wed, 21 Apr 2021 14:06:18 +0000 (17:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 21 Apr 2021 14:06:18 +0000 (17:06 +0300)
commitbb386d895f5fce2f0099886fdf7e7073b18246e8
tree99e7d96e9e6cc16027d1a2a36664daedaeede7aa
parentfea2752a8abb1de5cc89addc92b804d9ff4fc89a
Use a generation number to track if ProgramData has changed

This avoids the need for an application to call flush_shader_data after
a change to uniform values in some cases.
source/render/programdata.cpp
source/render/programdata.h
source/render/renderer.cpp
source/render/renderer.h