minor change NULL to nullptr
This commit is contained in:
parent
e2f5126d0a
commit
87b1fa735c
|
@ -746,15 +746,15 @@ void Game::handle_quit_event(SDL_Event &event)
|
|||
|
||||
void Game::quit()
|
||||
{
|
||||
if (glcontext != NULL)
|
||||
if (glcontext != nullptr)
|
||||
{
|
||||
SDL_GL_DeleteContext(glcontext);
|
||||
}
|
||||
if (renderer != NULL)
|
||||
if (renderer != nullptr)
|
||||
{
|
||||
SDL_DestroyRenderer(renderer);
|
||||
}
|
||||
if (window != NULL)
|
||||
if (window != nullptr)
|
||||
{
|
||||
SDL_DestroyWindow(window);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue