Skip to content

Commit

Permalink
Video: don't render null textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 18, 2018
1 parent 345fa27 commit 35a9dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video.cpp
Expand Up @@ -288,7 +288,7 @@ void CVideo::render_screen()
void CVideo::render_copy(
const texture& txt, SDL_Rect* src_rect, SDL_Rect* dst_rect, const bool flip_h, const bool flip_v)
{
if(!window) {
if(!window || txt.null()) {
return;
}

Expand Down

0 comments on commit 35a9dc6

Please sign in to comment.