Skip to content

cannot convert from 'const 4-component vector of highp float' to 'FragUserData 3-component vector of highp float' #39

@Cre3sh

Description

@Cre3sh

I was following tutorial no.10 and whenever i try to run my code after adding in the parts to load "basicVertex" and "BasicFragment" shaders, I keep getting the error in the title. My code is identical to Benny's.

basicFragment.fs:
#version 330

out vec3 fragColor;

void main()
{
fragColor = vec4(0.0, 1.0, 1.0, 1.0);
}

basicVertex.vs:
#version 330

layout (location = 0) in vec3 position;

void main()
{
gl_Position = vec4(0.25 * position, 1.0);
}

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