IconDes: UHD issues, GLCtrl developing

git-svn-id: svn://ultimatepp.org/upp/trunk@12249 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-09-04 21:24:11 +00:00
parent 09953c47ae
commit 00a11f2c47
10 changed files with 56 additions and 18 deletions

View file

@ -419,13 +419,15 @@ void GLDraw::Init(Size sz, uint64 context_)
}
gl_image.Use();
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, gl_image.GetUniform("u_projection"));
static int uni1 = gl_image.GetUniform("u_projection");
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni1);
gl_image_colored.Use();
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, gl_image_colored.GetUniform("u_projection"));
static int uni2 = gl_image_colored.GetUniform("u_projection");
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni2);
gl_rect.Use();
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, gl_rect.GetUniform("u_projection"));
static int uni3 = gl_rect.GetUniform("u_projection");
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni3);
}
void GLDraw::Finish()