- resample_effect:set_int("width", 1)
- resample_effect:set_int("height", 1)
- resample_effect:set_float("zoom_x", screen_width)
- resample_effect:set_float("zoom_y", screen_height)
+ if resample_effect ~= nil then
+ resample_effect:set_int("width", 1)
+ resample_effect:set_int("height", 1)
+ resample_effect:set_float("zoom_x", screen_width)
+ resample_effect:set_float("zoom_y", screen_height)
+ else
+ resize_effect:set_int("width", 1)
+ resize_effect:set_int("height", 1)
+ end