X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.cpp;h=8b7bc6c726f49ee1fdce4f130a9e6aaa373af25e;hb=2524bb81a3a642830b88a4268fedc03d59a93e60;hp=61610493df811411cc2a82ef980633754b97f36b;hpb=f92c10f969a02e707a236cb364332bf079cdf4fc;p=libs%2Fgl.git diff --git a/source/program.cpp b/source/program.cpp index 61610493..8b7bc6c7 100644 --- a/source/program.cpp +++ b/source/program.cpp @@ -101,10 +101,10 @@ void Program::link() if(!(linked = value)) throw compile_error(get_info_log()); - glGetProgramiv(id, GL_ACTIVE_UNIFORMS, &value); - unsigned count = value; + int count; + glGetProgramiv(id, GL_ACTIVE_UNIFORMS, &count); vector uniforms_by_index(count); - for(unsigned i=0; i