cleaner approach to handling the viewport bug
This commit is contained in:
parent
f42539e02b
commit
e87bdb8a95
2 changed files with 6 additions and 1 deletions
src
|
@ -52,6 +52,10 @@ struct GLProperty
|
|||
set(value);
|
||||
}
|
||||
|
||||
void refresh()
|
||||
{
|
||||
apply(current);
|
||||
}
|
||||
private:
|
||||
virtual void apply(const T &value) = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue