Michel Dänzer
be334f42a1
glamor: Declare "pos" in the composite glyph GLSL 1.20 vertex shader
Fixes shader compile failure:
Failed to compile VS: 0:13(43): error: `pos' undeclared
0:13(14): error: operands to arithmetic operators must be numeric
0:13(13): error: operands to arithmetic operators must be numeric
Program source:
#define ATLAS_DIM_INV 0.000976562500000000
attribute vec2 primitive;
attribute vec2 source;
varying vec2 glyph_pos;
uniform vec2 fill_offset;
uniform vec2 fill_size_inv;
varying vec2 fill_pos;
uniform vec4 v_matrix;
void main() {
gl_Position.xy = primitive.xy * v_matrix.xz + v_matrix.yw;
gl_Position.zw = vec2(0.0,1.0);
glyph_pos = source.xy * ATLAS_DIM_INV;
fill_pos = (fill_offset + primitive.xy + pos) * fill_size_inv;
}
(EE) Fatal server error:
(EE) GLSL compile failure
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97300
Reviewed-by: Keith Packard <keithp@keithp.com>
2016-08-23 12:59:55 +09:00
..
2015-03-24 12:01:39 -07:00
2016-08-23 12:59:55 +09:00
2016-04-15 16:31:36 -04:00
2014-04-23 10:32:23 -07:00
2016-08-22 10:15:32 +09:00
2016-03-10 11:12:43 -05:00
2016-05-26 09:17:59 -07:00
2014-01-27 09:30:47 -08:00
2015-11-18 10:04:44 -08:00
2016-06-08 11:51:04 -04:00
2014-07-30 12:17:27 -07:00
2016-07-18 15:22:04 -04:00
2016-07-18 15:25:59 -04:00
2016-01-13 11:21:02 +10:00
2014-04-23 10:32:32 -07:00
2016-01-29 18:13:09 -08:00
2016-01-21 06:47:35 +10:00
2015-07-16 10:43:54 -07:00
2015-07-02 10:05:59 -07:00
2016-01-29 18:13:09 -08:00
2016-03-10 11:12:43 -05:00
2015-07-10 09:42:58 -07:00
2016-01-29 18:13:09 -08:00
2015-07-16 10:57:00 -07:00
2014-06-15 22:02:40 +01:00
2016-07-18 15:22:04 -04:00
2016-05-26 09:17:59 -07:00
2016-01-26 12:02:42 -08:00
2016-01-29 18:13:09 -08:00
2016-05-30 17:49:32 +09:00
2016-01-29 18:13:09 -08:00
2016-05-26 09:17:59 -07:00
2015-03-24 12:43:34 -07:00
2016-07-15 12:59:43 -04:00
2016-05-26 09:17:59 -07:00
2014-04-03 13:07:51 -07:00
2016-05-26 09:17:59 -07:00
2016-05-26 09:17:59 -07:00
2015-03-24 12:01:39 -07:00
2015-03-24 12:01:39 -07:00
2015-04-21 16:58:08 -07:00
2016-03-10 11:12:43 -05:00
2016-01-21 06:49:40 +10:00
2015-07-10 09:42:58 -07:00
2016-03-08 13:05:38 -05:00
2016-07-18 15:27:51 -04:00
2016-04-29 10:19:17 -04:00
2016-03-09 14:03:06 -05:00