Video: don't render null textures
This commit is contained in:
parent
345fa27565
commit
35a9dc6084
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue