kitty/kitty/graphics_vertex.glsl
Kovid Goyal 66803e6873
Workaround to get graphics working on Apple's buggy products
Apparently some macOS OpenGL drivers cannot handle using a VAO with
attributes that have different divisors/apply to different shaders. So
use a separate VAO for graphics rendering. This is a small performance hit,
but is the price of supporting substandard computers.
2017-10-17 12:15:52 +05:30

10 lines
155 B
GLSL

#version GLSL_VERSION
in vec4 src;
out vec2 texcoord;
void main() {
texcoord = vec2(src[0], src[1]);
gl_Position = vec4(src[2], src[3], 0, 1);
}