Consider the first glBindTexture chunk to be resource initialisation

This commit is contained in:
baldurk
2019-07-22 19:03:49 +01:00
parent d91683e7c6
commit ac1b062d42
@@ -252,7 +252,10 @@ bool WrappedOpenGL::Serialise_glBindTexture(SerialiserType &ser, GLenum target,
TextureData &tex = m_Textures[GetResourceManager()->GetID(texture)];
// only set texture type if we don't have one. Otherwise refuse to re-type.
if(tex.curType == eGL_NONE)
{
tex.curType = TextureTarget(target);
AddResourceInitChunk(texture);
}
tex.creationFlags |= TextureCategory::ShaderRead;
}
}