Skip to content

Crash with a Geometry shader #334

@lemonJumps

Description

@lemonJumps

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();
}

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