Fixed corrupted screen using single buffer

Made a little change in gfxSetDoubleBuffering() to avoid graphics being
corrupted when using single buffer mode and never calling
gfxSwapBuffers()