no need to call set-gpu-state* directly
parent
b6ddcafcbd
commit
9c9132297f
|
@ -221,7 +221,7 @@ BEFORE: bunny-world begin-world
|
||||||
bunny-uniforms boa ;
|
bunny-uniforms boa ;
|
||||||
|
|
||||||
: draw-bunny ( world -- )
|
: draw-bunny ( world -- )
|
||||||
T{ depth-state { comparison cmp-less } } set-gpu-state*
|
T{ depth-state { comparison cmp-less } } set-gpu-state
|
||||||
|
|
||||||
[
|
[
|
||||||
sobel>> framebuffer>> {
|
sobel>> framebuffer>> {
|
||||||
|
@ -247,7 +247,7 @@ BEFORE: bunny-world begin-world
|
||||||
sobel-uniforms boa ;
|
sobel-uniforms boa ;
|
||||||
|
|
||||||
: draw-sobel ( world -- )
|
: draw-sobel ( world -- )
|
||||||
T{ depth-state { comparison f } } set-gpu-state*
|
T{ depth-state { comparison f } } set-gpu-state
|
||||||
|
|
||||||
sobel>> {
|
sobel>> {
|
||||||
{ "primitive-mode" [ drop triangle-strip-mode ] }
|
{ "primitive-mode" [ drop triangle-strip-mode ] }
|
||||||
|
@ -260,7 +260,7 @@ BEFORE: bunny-world begin-world
|
||||||
[ draw-bunny ] [ draw-sobel ] bi ;
|
[ draw-bunny ] [ draw-sobel ] bi ;
|
||||||
|
|
||||||
: draw-loading ( world -- )
|
: draw-loading ( world -- )
|
||||||
T{ depth-state { comparison f } } set-gpu-state*
|
T{ depth-state { comparison f } } set-gpu-state
|
||||||
|
|
||||||
loading>> {
|
loading>> {
|
||||||
{ "primitive-mode" [ drop triangle-strip-mode ] }
|
{ "primitive-mode" [ drop triangle-strip-mode ] }
|
||||||
|
|
Loading…
Reference in New Issue