if(!features.legacy)
{
prog.bind_fragment_data(0, "frag_color");
- prog.bind_attribute(get_component_type(VERTEX4), "vertex");
+ prog.bind_attribute(VERTEX4, "vertex");
if(features.lighting)
- prog.bind_attribute(get_component_type(NORMAL3), "normal");
+ prog.bind_attribute(NORMAL3, "normal");
else if(features.material)
- prog.bind_attribute(get_component_type(COLOR4_FLOAT), "color");
+ prog.bind_attribute(COLOR4_FLOAT, "color");
if(features.texture || features.normalmap)
- prog.bind_attribute(get_component_type(TEXCOORD4), "texcoord");
+ prog.bind_attribute(TEXCOORD4, "texcoord");
}
if(features.normalmap)
{