mirror of https://github.com/xemu-project/xemu.git
Avoid shader compilation bug if 'g' is RGB
This commit is contained in:
parent
60f8bce93a
commit
0351caf058
|
@ -513,7 +513,8 @@ static void add_final_stage_code(struct PixelShader *ps, struct FCInputInfo fina
|
|||
qstring_append_fmt(ps->code, "r0.rgb = %s + mix(vec3(%s), vec3(%s), vec3(%s));\n",
|
||||
qstring_get_str(d), qstring_get_str(c),
|
||||
qstring_get_str(b), qstring_get_str(a));
|
||||
qstring_append_fmt(ps->code, "r0.a = %s;\n", qstring_get_str(g));
|
||||
/* FIXME: Is .x correctly here? */
|
||||
qstring_append_fmt(ps->code, "r0.a = vec3(%s).x;\n", qstring_get_str(g));
|
||||
|
||||
QDECREF(a);
|
||||
QDECREF(b);
|
||||
|
|
Loading…
Reference in New Issue