X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.cpp;h=ffdd3b6380e03180a6e3790ea730d57fcd6d8832;hb=f136af6873d7409daffe262b14f632af986bd7dc;hp=111cf64b1d31886e3d33cf831d89c01642a18a6e;hpb=ee377487a2853046085e91fa41c62ea42066d168;p=libs%2Fgl.git diff --git a/source/program.cpp b/source/program.cpp index 111cf64b..ffdd3b63 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -94,6 +94,7 @@ void Program::link() (*i)->compile(); uniforms.clear(); + legacy_vars = false; glLinkProgram(id); int value; @@ -127,6 +128,20 @@ void Program::link() info.type = type; uniforms_by_index[i] = &info; } + else + legacy_vars = true; + } + + glGetProgramiv(id, GL_ACTIVE_ATTRIBUTES, &count); + for(int i=0; i