texturerenderer rendering fixes