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