win32-fix selection of null 3d core

This commit is contained in:
zeromus 2013-02-06 23:53:29 +00:00
parent 37ebeb0682
commit 9bd7b25aff
1 changed files with 7 additions and 1 deletions

View File

@ -5953,7 +5953,7 @@ DOKEYDOWN:
}
return 0;
}
return DefWindowProc (hwnd, message, wParam, lParam);
return DefWindowProc (hwnd, message, wParam, lParam);
}
void Change3DCoreWithFallbackAndSave(int newCore)
@ -5966,6 +5966,12 @@ void Change3DCoreWithFallbackAndSave(int newCore)
if(newCore == GPU3D_SWRAST)
goto TRY_SWRAST;
if(newCore == GPU3D_NULL)
{
NDS_3D_ChangeCore(GPU3D_NULL);
goto DONE;
}
if(!NDS_3D_ChangeCore(GPU3D_OPENGL_3_2))
{
printf("falling back to 3d core: %s\n",core3DList[GPU3D_OPENGL_OLD]->name);