void WrappedOpenGL::glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) { m_Real.glTextureStorage3DEXT(texture, target, levels, internalformat, width, height, depth); if(m_State >= WRITING) { GLResourceRecord *record = GetResourceManager()->GetResourceRecord(TextureRes(texture)); RDCASSERT(record); SCOPED_SERIALISE_CONTEXT(TEXSTORAGE3D); Serialise_glTextureStorage3DEXT(texture, target, levels, internalformat, width, height, depth); if(m_State == WRITING_CAPFRAME) m_ContextRecord->AddChunk(scope.Get()); else record->AddChunk(scope.Get()); } }
void WrappedOpenGL::glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) { m_Real.glTextureStorage3DEXT(texture, target, levels, internalformat, width, height, depth); if(m_State >= WRITING) { GLResourceRecord *record = GetResourceManager()->GetResourceRecord(TextureRes(GetCtx(), texture)); RDCASSERT(record); SCOPED_SERIALISE_CONTEXT(TEXSTORAGE3D); Serialise_glTextureStorage3DEXT(texture, target, levels, internalformat, width, height, depth); record->AddChunk(scope.Get()); // illegal to re-type textures if(record->datatype == eGL_UNKNOWN_ENUM) record->datatype = target; else RDCASSERT(record->datatype == target); } }