mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 23:40:29 +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)
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <cstring>
|
||||
#include "shader.h"
|
||||
#include "glsl_common.h"
|
||||
#include "utilities/Logs.h"
|
||||
|
||||
Reference in New Issue
Block a user