VertexShaderGen: Clip z using user-defined clipping planes.

This commit is contained in:
Jules Blok
2016-08-04 14:09:35 +02:00
parent 159247f4ad
commit b1ed7e80fb
3 changed files with 10 additions and 0 deletions

View File

@ -724,6 +724,7 @@ Renderer::Renderer()
glClearDepthf(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
glEnable(GL_CLIP_DISTANCE0);
glPixelStorei(GL_UNPACK_ALIGNMENT, 4); // 4-byte pixel alignment