Skip to content

Bug in variable minification : field property get accidentally minified #2

Description

@gre

With this glsl:

void foo (vec2 p) {
  float x = mix(p.x, 1.0-p.x, 0.4);
}

Here is the result:

$ cat bug.glsl | bin/glslmin
void a(vec2 b){float c=mix(b.c,1.0-b.c,0.4);}

Which is wrong. It should be:

void a(vec2 b){float c=mix(b.x,1.0-b.x,0.4);}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions