PickingPass now sets state and clear it when done.

PickingState now it's own class so renderer is a bit cleaner.
This commit is contained in:
Tleety
2015-12-11 11:18:30 +01:00
parent cefc4e5257
commit 91edab34bc
9 changed files with 264 additions and 104 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ bool RenderState::CullFace(GLenum GLCullFace)
glGetIntegerv(GL_CULL_FACE_MODE, &a);
if(a == GL_BACK)
{
LOG_INFO("Setting Cullface to back, unessesary since this is already default.");
//LOG_INFO("Setting Cullface to back, unessesary since this is already default.");
}
m_preCullFace = a;
glCullFace(GLCullFace);