opengl.gl.extensions: can use counter here

char-rename
Björn Lindqvist 2016-09-16 06:38:35 +02:00
parent b2bb1f8ff4
commit 078f576769
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ reset-gl-function-pointers
reset-gl-function-number-counter reset-gl-function-number-counter
: gl-function-counter ( -- n ) : gl-function-counter ( -- n )
+gl-function-counter+ get-global +gl-function-counter+ counter ;
dup 1 + +gl-function-counter+ set-global ;
: gl-function-pointer ( names n -- funptr ) : gl-function-pointer ( names n -- funptr )
gl-function-context 2array dup +gl-function-pointers+ get-global at gl-function-context 2array dup +gl-function-pointers+ get-global at