Fixed a bugg with RenderState.

Renderstate now also handles the Frambuffer binding.
This commit is contained in:
Tleety
2015-12-11 16:07:12 +01:00
parent 433331e752
commit 53d5736420
10 changed files with 100 additions and 63 deletions
+4 -3
View File
@@ -1,12 +1,13 @@
#include "Rendering/PickingPassState.h"
PickingPassState::PickingPassState()
PickingPassState::PickingPassState(GLuint frameBuffer)
{
GLERROR("---2");
BindBuffer(frameBuffer);
GLERROR("---3");
Enable(GL_DEPTH_TEST);
Enable(GL_CULL_FACE);
CullFace(GL_BACK);
glm::vec4 clearColor = glm::vec4(0.f);
ClearColor(clearColor);