- if(module->vertex_context.present)
- program.attach_shader_owned(new VertexShader(head+format_context(module->vertex_context)));
- if(module->geometry_context.present)
- program.attach_shader_owned(new GeometryShader(head+format_context(module->geometry_context)));
- if(module->fragment_context.present)
- program.attach_shader_owned(new FragmentShader(head+format_context(module->fragment_context)));
+ if(module->vertex_stage.present)
+ program.attach_shader_owned(new VertexShader(head+format_stage(module->vertex_stage)));
+ if(module->geometry_stage.present)
+ program.attach_shader_owned(new GeometryShader(head+format_stage(module->geometry_stage)));
+ if(module->fragment_stage.present)
+ program.attach_shader_owned(new FragmentShader(head+format_stage(module->fragment_stage)));