Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with a Geometry shader #334

Open
lemonJumps opened this issue Jan 29, 2025 · 0 comments
Open

Crash with a Geometry shader #334

lemonJumps opened this issue Jan 29, 2025 · 0 comments

Comments

@lemonJumps
Copy link

I've tried to debug a geometry shader and the app just keeps dying.

here is the shader that just crashes everything:
the other shaders are the glsl simple shaders, this is literally just from an example on here: https://learnopengl.com/Advanced-OpenGL/Geometry-Shader

#version 450 core

layout (points) in;
layout (line_strip, max_vertices = 3) out;

void main()
{
    gl_Position = gl_in[0].gl_Position + vec4(-0.1, 0.0, 0.0, 0.0); 
    EmitVertex();

    gl_Position = gl_in[0].gl_Position + vec4( 0.1, 0.0, 0.0, 0.0);
    EmitVertex();
    
    gl_Position = gl_in[0].gl_Position + vec4( 0.0, 1.0, 0.0, 0.0);
    EmitVertex();
    
    EndPrimitive();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant