fixed opengl rendering bug

this removes a bug with the opengl rendering that fixes those wrongly rendered textures.