GLProperty: Assert proper stack usage
This commit is contained in:
parent
c44f4d7d28
commit
7ce747d34d
|
@ -25,10 +25,16 @@
|
|||
#include "etc.h"
|
||||
|
||||
#include <stack>
|
||||
#include <assert.h>
|
||||
|
||||
template<typename T>
|
||||
struct GLProperty
|
||||
{
|
||||
~GLProperty()
|
||||
{
|
||||
assert(stack.size() == 0);
|
||||
}
|
||||
|
||||
void init(const T &value)
|
||||
{
|
||||
current = value;
|
||||
|
|
Loading…
Reference in New Issue