opengl.gl.extensions: can use counter here
parent
b2bb1f8ff4
commit
078f576769
|
@ -24,8 +24,7 @@ reset-gl-function-pointers
|
|||
reset-gl-function-number-counter
|
||||
|
||||
: gl-function-counter ( -- n )
|
||||
+gl-function-counter+ get-global
|
||||
dup 1 + +gl-function-counter+ set-global ;
|
||||
+gl-function-counter+ counter ;
|
||||
|
||||
: gl-function-pointer ( names n -- funptr )
|
||||
gl-function-context 2array dup +gl-function-pointers+ get-global at
|
||||
|
|
Loading…
Reference in New Issue