Skip to content

smoothstep declared even when GLSL 1.20 is explicitely requested #500

@illwieckz

Description

@illwieckz

I got this error:

Compile failed.
ERROR: 0:163: 'smoothstep' : cannot redeclare built-in function (only overloading is allowed)

The GLSL shader explicitely started with this line:

#version 120 

As far as I know, smoothstep isn't part of GLSL 1.20.

Our code declares some functions like smoothstep for GLSL versions not implementing them.

So our code then expects smoothstep to not be declared when explicitely requesting GLSL 1.20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions