mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
GLDraw: Fixed issue with viewport
git-svn-id: svn://ultimatepp.org/upp/trunk@6371 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ea941f41a6
commit
81e13393e1
1 changed files with 2 additions and 0 deletions
|
|
@ -157,6 +157,8 @@ void GLDraw::Init(Size sz, uint64 context_)
|
|||
|
||||
glEnable(GL_BLEND);
|
||||
|
||||
glViewport(0, 0, (GLsizei)sz.cx, (GLsizei)sz.cy);
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue