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

Henri Verbeet hverbeet at gmail.com
Wed Oct 6 11:00:04 CDT 2021


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



More information about the wine-devel mailing list