Windows compatibility hack for glReadPixels.