X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.cpp;h=919fceebe68eee80081116b1ab65397250056303;hb=1a3eb3759708f41f0d57a271f2953e4de0506858;hp=4e09038074613d64f0d5559127e51df305a156c2;hpb=b7f46931a9878b2fd7ec863d520dc22ac89c0baf;p=libs%2Fgl.git diff --git a/source/core/program.cpp b/source/core/program.cpp index 4e090380..919fceeb 100644 --- a/source/core/program.cpp +++ b/source/core/program.cpp @@ -344,6 +344,9 @@ void Program::query_uniforms() { u.location = glGetUniformLocation(id, u.name.c_str()); u.block = &default_block; + u.array_stride = get_type_size(u.type); + if(is_matrix(u.type)) + u.matrix_stride = get_type_size(get_matrix_column_type(u.type)); default_block.uniforms.push_back(&u); if(is_image(u.type) && u.location>=0)