Video: don't render null textures

This commit is contained in:
Charles Dang 2017-07-09 16:23:18 +11:00
parent 345fa27565
commit 35a9dc6084

View file

@ -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;
}