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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user