(PSP) Check if input and input_data points to something in

graphics init function
This commit is contained in:
twinaphex 2014-02-16 15:24:35 +01:00
parent cab8cf90c5
commit 9e295eccd4
1 changed files with 6 additions and 3 deletions

View File

@ -100,9 +100,12 @@ static void *psp_init(const video_info_t *video,
if (!psp)
goto error;
pspinput = input_psp.init();
*input = pspinput ? &input_psp : NULL;
*input_data = pspinput;
if (input && input_data)
{
pspinput = input_psp.init();
*input = pspinput ? &input_psp : NULL;
*input_data = pspinput;
}
init_texture(psp, video);