Blitter::Draw assert on zero src texture
This commit is contained in:
parent
ab93a6bf64
commit
a4f6e60e20
|
@ -202,6 +202,8 @@ struct SavedState {
|
||||||
|
|
||||||
void Blitter::Draw(GLuint src_texture, Rect2D src_rect, Rect2D dest_rect,
|
void Blitter::Draw(GLuint src_texture, Rect2D src_rect, Rect2D dest_rect,
|
||||||
GLenum filter) {
|
GLenum filter) {
|
||||||
|
assert_not_zero(src_texture);
|
||||||
|
|
||||||
glDisable(GL_SCISSOR_TEST);
|
glDisable(GL_SCISSOR_TEST);
|
||||||
glDisable(GL_STENCIL_TEST);
|
glDisable(GL_STENCIL_TEST);
|
||||||
glDisablei(GL_BLEND, 0);
|
glDisablei(GL_BLEND, 0);
|
||||||
|
|
Loading…
Reference in New Issue