17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 02:47:28 +01:00

Migration cleanup and renderer documentation

This commit is contained in:
2026-10-15 19:05:35 +02:00
parent c77151979a
commit f47172f34d
18 changed files with 310 additions and 90 deletions

View File

@@ -9,6 +9,13 @@ namespace gl
thread_local static bindable<T>* active;
public:
~bindable()
{
// deleting an object leaves its address free for the next one, which must not be taken for the bound one
if (active == this)
active = nullptr;
}
void bind()
{
if (active == this)