tldr: i want calling render.render_target('constant_name', some_parameters)
multiple times to automatically deallocate previous render targets with the same name (or throw warning about having multiple targets with the same name). Or remove that ‘name’ field as it seems to be not used anywhere.
What is the purpose of the name
parameter in render.render_target
? It can’t be used anywhere and i assumed that if i call render.render_target
multiple times with the same name then old target is deleted and new one is created over it. What really happens is that i get ‘gl out of memory’ crash after some time because i don’t call render.delete_render_target
manually. Maybe engine should automatically deallocate previous targets with the same name or throw warning when that happens (or remove name
field entirely if its not used anywhere and might confuse someone like me)?