[PATCH 3/5] wined3d: Declare gl_Position as invariant.

Matteo Bruni matteo.mystral at gmail.com
Wed Oct 6 11:22:59 CDT 2021


On Wed, Oct 6, 2021 at 6:00 PM Henri Verbeet <hverbeet at gmail.com> wrote:
>
> On Wed, 6 Oct 2021 at 16:10, Matteo Bruni <mbruni at codeweavers.com> wrote:
> > @@ -8991,6 +8996,8 @@ static GLuint shader_glsl_generate_ffp_vertex_shader(struct shader_glsl_priv *pr
> >
> >      shader_glsl_add_version_declaration(buffer, gl_info);
> >
> > +    shader_addline(buffer, "invariant gl_Position;\n");
> > +
> >      if (shader_glsl_use_explicit_attrib_location(gl_info))
> >          shader_addline(buffer, "#extension GL_ARB_explicit_attrib_location : enable\n");
> >
> This introduces GLSL compilation errors in the tests:
>
>     0:3(1): error: #extension directive is not allowed in the middle of a shader
>

Oops, not sure how I missed that.



More information about the wine-devel mailing list