]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.cpp
Add an overload of bind_attribute that takes a VertexComponent
[libs/gl.git] / source / programbuilder.cpp
index d231f349ac3593ee73e8ac32797f3719192a8cb3..44b7798e9857dfeef01fe525365364e8e8693370 100644 (file)
@@ -220,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)
        {