Made sure that all parts of the rendering engine uses the statepolicy code to bind textures.