Blitter::Draw assert on zero src texture

This commit is contained in:
Dr. Chat 2015-12-22 15:44:51 -06:00
parent ab93a6bf64
commit a4f6e60e20
1 changed files with 2 additions and 0 deletions

View File

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