GLCtrl: GTK partially fixed

git-svn-id: svn://ultimatepp.org/upp/trunk@12567 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-11-23 08:50:54 +00:00
parent 0ea41af5b2
commit 32ef80dfc6
10 changed files with 68 additions and 67 deletions

View file

@ -79,23 +79,23 @@ const GLVertexData& GLRectMesh()
void GLDrawTexture(const GLContext2D& dd, const Rectf& rect, int textureid, Size tsz, const Rect& src)
{
static GLCode program(R"(
#version 330 core
// #version 330 core
uniform vec2 offset;
uniform vec2 scale;
uniform vec2 toffset;
uniform vec2 tscale;
in vec2 aPos;
out vec2 tPos;
attribute vec2 aPos;
varying vec2 tPos;
void main()
{
gl_Position = vec4(scale * aPos + offset, 0, 1);
tPos = tscale * aPos + toffset;
}
)", R"(
#version 330 core
in vec2 tPos;
// #version 330 core
varying vec2 tPos;
uniform float alpha;
uniform sampler2D s_texture;
void main()