azur: (minor)

This commit is contained in:
Lephe 2021-07-05 22:17:53 +02:00 committed by Lephenixnoir
parent 028d927b6d
commit 507fee11e3
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 11 deletions

View File

@ -6,16 +6,9 @@ layout(location=1) in vec2 a_texture_pos;
/* Location in image space */
out vec2 v_position;
uniform vec2 u_windowSize;
uniform mat3 u_transform;
void main() {
v_position = a_texture_pos;
float w = u_windowSize.x / 2.0;
float h = u_windowSize.y / 2.0;
gl_Position.x = (a_vertex.x - w) / w;
gl_Position.y = -(a_vertex.y - h) / h;
gl_Position.z = 0.0;
gl_Position.w = 1.0;
v_position = a_texture_pos;
gl_Position = vec4((u_transform * vec3(a_vertex, 1.0)).xy, 0.0, 1.0);
}

View File

@ -69,7 +69,6 @@ int azur_init(char const *title, int window_width, int window_height)
}
#endif
glEnable(GL_SCISSOR_TEST);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);