0
如果窗口創建失敗,我應該調用SDL_DestroyWindow嗎?我有以下代碼如下:如果窗口創建失敗,我應該調用SDL_DestroyWindow嗎?
if(this->Window == NULL)
{
std::cout << "Error: Can't create the SDL Window \n" << SDL_GetError() << "\n";
SDL_DestroyWindow(this->Window);
std::exit(EXIT_FAILURE);
}
是不是錯了?