bail out of glBindTexture() if texture name is invalid

This commit is contained in:
baldurk
2014-11-02 10:52:23 +00:00
parent 61df69d80f
commit d63352a1b0
@@ -123,6 +123,9 @@ bool WrappedOpenGL::Serialise_glBindTexture(GLenum target, GLuint texture)
void WrappedOpenGL::glBindTexture(GLenum target, GLuint texture)
{
m_Real.glBindTexture(target, texture);
if(GetResourceManager()->GetID(TextureRes(GetCtx(), texture)) == ResourceId())
return;
if(m_State == WRITING_CAPFRAME)
{