- if(GL::ARB_shader_objects)
- {
- shprog = new GL::Program;
- GL::ProgramBuilder::StandardFeatures features;
- features.material = true;
- features.texture = true;
- GL::ProgramBuilder(features).add_shaders(*shprog);
- shprog->link();
- }
- else
- shprog = 0;
+ shprog = &resources.get<GL::Program>("ui.shader");
+
+ blend.enabled = true;
+ blend.src_factor = GL::SRC_ALPHA;
+ blend.dst_factor = GL::ONE_MINUS_SRC_ALPHA;