mirror of
https://github.com/tsoding/boomer
synced 2024-11-16 12:12:47 +00:00
(#12) Fix screenshot distortion
This commit is contained in:
parent
e54c518536
commit
5d9a46b142
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user