Tell gl to draw to the back buffer when a back buffer is used, do not use the value from gl.
Attach a file by drag & drop or click to upload