multi viewports (temporaily disable VAO)

This commit is contained in:
milek7
2019-03-12 00:53:34 +01:00
parent 3693c1660e
commit e85d588851
14 changed files with 314 additions and 173 deletions

View File

@@ -6,7 +6,7 @@ namespace gl
class bindable
{
protected:
static bindable<T>* active;
thread_local static bindable<T>* active;
public:
void bind()
@@ -23,5 +23,5 @@ namespace gl
}
};
template <typename T> bindable<T>* bindable<T>::active;
template <typename T> thread_local bindable<T>* bindable<T>::active;
}