PicoDrawSetOutFormat(vout_format, 0);
vout_16bit = 1;
- if ((vm_current_start_line != -1) &&
- (vm_current_line_count != -1) &&
- (vm_current_start_col != -1) &&
- (vm_current_col_count != -1))
+ if (vout_buf &&
+ (vm_current_start_line != -1) && (vm_current_line_count != -1) &&
+ (vm_current_start_col != -1) && (vm_current_col_count != -1))
emu_video_mode_change(
vm_current_start_line, vm_current_line_count,
vm_current_start_col, vm_current_col_count);
/* setup video if required */
if (vout_format != old_vout_format)
{
- if ((vm_current_start_line != -1) &&
- (vm_current_line_count != -1) &&
- (vm_current_start_col != -1) &&
- (vm_current_col_count != -1))
+ if (vout_buf &&
+ (vm_current_start_line != -1) && (vm_current_line_count != -1) &&
+ (vm_current_start_col != -1) && (vm_current_col_count != -1))
emu_video_mode_change(
vm_current_start_line, vm_current_line_count,
vm_current_start_col, vm_current_col_count);
{
size_t i;
+ PicoExit();
+
+ disk_init();
+
#ifdef _3DS
linearFree(vout_buf);
#elif defined(RENDER_GSKIT_PS2)
free(vout_ghosting_buf);
vout_ghosting_buf = NULL;
- PicoExit();
-
- disk_init();
-
libretro_supports_bitmasks = false;
}