Fix textures with zero width and non-zero height (or vice versa) by not rendering them
parent
fa79803856
commit
0580b67542
|
@ -96,7 +96,7 @@ PRIVATE>
|
||||||
texture new swap >>loc
|
texture new swap >>loc
|
||||||
swap
|
swap
|
||||||
[ dim>> >>dim ] keep
|
[ dim>> >>dim ] keep
|
||||||
[ dim>> { 0 0 } = ] keep '[
|
[ dim>> product 0 = ] keep '[
|
||||||
_
|
_
|
||||||
[ dim>> texture-coords >>texture-coords ]
|
[ dim>> texture-coords >>texture-coords ]
|
||||||
[ power-of-2-image make-texture >>texture ] bi
|
[ power-of-2-image make-texture >>texture ] bi
|
||||||
|
|
Loading…
Reference in New Issue