Fix memory corruption in cap

db4
Slava Pestov 2008-11-18 20:35:41 -06:00
parent 7fd0a27c0d
commit 13509fcabe
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ models opengl.framebuffers ui.gadgets.worlds ui.gadgets fry alien.syntax ;
IN: cap
: screenshot-array ( world -- byte-array )
dim>> product 3 * <byte-array> ;
dim>> [ first 3 * 4 align ] [ second ] bi * <byte-array> ;
: gl-screenshot ( gadget -- byte-array )
[