fixes loadPixels() regression in opengl renderer