]> gitweb.factorcode.org Git - factor.git/commitdiff
cap: use find-gl-context.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 Jan 2018 23:09:48 +0000 (15:09 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 Jan 2018 23:09:48 +0000 (15:09 -0800)
extra/cap/cap.factor

index 9f633455b71a3d616d62ade8b6dd7b6d2c04916e..42139db35963bf0c3df61db0f9a358193b4208aa 100644 (file)
@@ -12,7 +12,7 @@ IN: cap
     [ gl-scale ] bi@ * >fixnum <byte-array> ;
 
 : gl-screenshot ( gadget -- byte-array )
-    [ find-world handle>> select-gl-context ]
+    [ find-gl-context ]
     [
         [
             GL_BACK glReadBuffer