X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flighting.cpp;h=f5fbca6ac7ac954c5a2c63cd75590557e4245660;hb=ce657d3b7783db9f3450162fbf07210ea1c8c661;hp=515733a6b253e13a69f2b8a117680a73f487e6cf;hpb=36ce025ec317bbe57719f94886d5d31932754d40;p=libs%2Fgl.git diff --git a/source/lighting.cpp b/source/lighting.cpp index 515733a6..f5fbca6a 100644 --- a/source/lighting.cpp +++ b/source/lighting.cpp @@ -41,7 +41,7 @@ void Lighting::detach(unsigned i) Light::unbind_from(i); } -void Lighting::update_shader_data(const Matrix &view_matrix) +void Lighting::update_shader_data(ProgramData &shdata, const Matrix &view_matrix) const { shdata.uniform("ambient_color", ambient); for(unsigned i=0; i