fix projection matrix so widget resizes properly
This commit is contained in:
parent
594a5c5359
commit
3a7255bbae
@ -64,6 +64,7 @@ class SketchWidget:
|
|||||||
|
|
||||||
glViewport(0, 0, width, height)
|
glViewport(0, 0, width, height)
|
||||||
glMatrixMode(GL_PROJECTION)
|
glMatrixMode(GL_PROJECTION)
|
||||||
|
glLoadIdentity()
|
||||||
glOrtho(0, width, 0, height, 1.0, -1.0)
|
glOrtho(0, width, 0, height, 1.0, -1.0)
|
||||||
|
|
||||||
glMatrixMode(GL_MODELVIEW)
|
glMatrixMode(GL_MODELVIEW)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user