(PSP) Check if input and input_data points to something in
graphics init function
This commit is contained in:
parent
cab8cf90c5
commit
9e295eccd4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue