GLDraw: improvements

git-svn-id: svn://ultimatepp.org/upp/trunk@12349 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-10-09 18:56:03 +00:00
parent 38e5890907
commit 0ab886f5bc

View file

@ -420,7 +420,7 @@ void GLDraw::Init(Size sz, uint64 context_)
gl_image.Use();
static int uni1 = gl_image.GetUniform("u_projection");
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, un
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni1);
gl_image_colored.Use();
static int uni2 = gl_image_colored.GetUniform("u_projection");
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni2);