]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix textures with zero width and non-zero height (or vice versa) by not rendering...
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 21 Feb 2009 05:30:41 +0000 (23:30 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 21 Feb 2009 05:30:41 +0000 (23:30 -0600)
basis/opengl/textures/textures.factor

index ee25be1d8ce60a0961e40037e7d8cbe65dd80575..f65a7ac22280fd490f2b24355cd6a72682b1bbd0 100644 (file)
@@ -96,7 +96,7 @@ PRIVATE>
     texture new swap >>loc
     swap
     [ dim>> >>dim ] keep
-    [ dim>> { 0 0 } = ] keep '[
+    [ dim>> product 0 = ] keep '[
         _
         [ dim>> texture-coords >>texture-coords ]
         [ power-of-2-image make-texture >>texture ] bi