(#12) Fix screenshot distortion

This commit is contained in:
rexim 2019-09-12 01:34:14 +07:00
parent e54c518536
commit 5d9a46b142

View File

@ -54,9 +54,7 @@ proc display() {.cdecl.} =
glutSwapBuffers()
proc reshape(width: GLsizei, height: GLsizei) {.cdecl.} =
if height == 0:
return
glViewport(0, 0, width, height)
discard
# NOTE: it's not possible to deallocate the returned Image because the
# reference to XImage is lost.