From a4f6e60e20371a296f34a4f8b5e0486241349280 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Tue, 22 Dec 2015 15:44:51 -0600 Subject: [PATCH] Blitter::Draw assert on zero src texture --- src/xenia/ui/gl/blitter.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/ui/gl/blitter.cc b/src/xenia/ui/gl/blitter.cc index 21c2aec36..7501758ca 100644 --- a/src/xenia/ui/gl/blitter.cc +++ b/src/xenia/ui/gl/blitter.cc @@ -202,6 +202,8 @@ struct SavedState { void Blitter::Draw(GLuint src_texture, Rect2D src_rect, Rect2D dest_rect, GLenum filter) { + assert_not_zero(src_texture); + glDisable(GL_SCISSOR_TEST); glDisable(GL_STENCIL_TEST); glDisablei(GL_BLEND, 0);