X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogrambuilder.cpp;h=44b7798e9857dfeef01fe525365364e8e8693370;hb=61ff840cd211f10d45dca8c4dad2cca5f68aaa42;hp=88183bccf9b6094880b9532f7aa36c6af8d84301;hpb=dd6b80599116d6e61f3ea6c7a917586def15e3a3;p=libs%2Fgl.git diff --git a/source/programbuilder.cpp b/source/programbuilder.cpp index 88183bcc..44b7798e 100644 --- a/source/programbuilder.cpp +++ b/source/programbuilder.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "extension.h" #include "program.h" #include "programbuilder.h" #include "shader.h" @@ -219,13 +220,13 @@ void ProgramBuilder::add_shaders(Program &prog) const 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) {