Fix texture cache accesses in opengl