fix bug of display in viewerGL

now the viewer displays pictures correctly