X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterial.cpp;h=58cd15cb8e122169803ce5015be54681df948173;hb=982005bfbccb429767d0676bd840caf1118c9e21;hp=25c21ff21988b3aed6a00419cb4dcc9ec2450a9f;hpb=4c89817d6e060323ec1ddd275f3265cea688c650;p=libs%2Fgl.git diff --git a/source/material.cpp b/source/material.cpp index 25c21ff2..58cd15cb 100644 --- a/source/material.cpp +++ b/source/material.cpp @@ -43,7 +43,7 @@ void Material::set_shininess(float s) shininess=s; } -void Material::apply() +void Material::apply() const { glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, &ambient.r); glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, &diffuse.r);