Commit 32be141c authored by Tim Übelhör's avatar Tim Übelhör

building standalone compute shaders

parent 7668c45d
......@@ -44,8 +44,14 @@ Shader ShaderBuilder::build()
{
// shader program
GLuint program_id = glCreateProgram();
glAttachShader(program_id, vertex_shader);
glAttachShader(program_id, fragment_shader);
if (vertex_shader != 0)
{
glAttachShader(program_id, vertex_shader);
}
if (fragment_shader != 0)
{
glAttachShader(program_id, fragment_shader);
}
if (geometry_shader != 0)
{
glAttachShader(program_id, geometry_shader);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment