error in libs/openframeworks/gl/ofMaterial.cpp

Hello,

I downloaded openframeworks 0.8.0 and I’ve found a error in ofMaterial.cpp class.
In method begin(), in line 71.
There is this paragraph:
glGetMaterialfv(GL_BACK,GL_DIFFUSE,&prev_diffuse_back.r);
glGetMaterialfv(GL_BACK,GL_SPECULAR,&prev_specular_back.r);
glGetMaterialfv(GL_BACK,GL_AMBIENT,&prev_ambient_back.r);
glGetMaterialfv(GL_BACK,GL_EMISSION,&prev_emissive.r);
glGetMaterialfv(GL_BACK, GL_SHININESS, &prev_shininess_back);

There should be this paragraph:
glGetMaterialfv(GL_BACK,GL_DIFFUSE,&prev_diffuse_back.r);
glGetMaterialfv(GL_BACK,GL_SPECULAR,&prev_specular_back.r);
glGetMaterialfv(GL_BACK,GL_AMBIENT,&prev_ambient_back.r);
glGetMaterialfv(GL_BACK,GL_EMISSION,&prev_emissive_back.r);
glGetMaterialfv(GL_BACK, GL_SHININESS, &prev_shininess_back);

In the first paragraph, it is saved the back emission and then it is restaured well.

can you post an issue in github?

http://github.com/openframeworks/openFrameworks/issues

Ok, I’m going to post it.
I don’t know where I should report to it.