texture: fix size (DAMN YOU PHP REGISTER_GLOBALS)