(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)
|
if (!psp)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
pspinput = input_psp.init();
|
if (input && input_data)
|
||||||
*input = pspinput ? &input_psp : NULL;
|
{
|
||||||
*input_data = pspinput;
|
pspinput = input_psp.init();
|
||||||
|
*input = pspinput ? &input_psp : NULL;
|
||||||
|
*input_data = pspinput;
|
||||||
|
}
|
||||||
|
|
||||||
init_texture(psp, video);
|
init_texture(psp, video);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue