Added glViewPort call to stop popping of scale when shadow maps are enabled and disabled

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%408
This commit is contained in:
kearwood
2012-03-15 17:22:48 +00:00
parent ecc233ddb3
commit 459f37521b
8 changed files with 48 additions and 309 deletions

View File

@@ -263,7 +263,7 @@ double const PI = 3.141592653589793f;
- (void)renderShadowBufferNumber: (int)iShadow ForScene: (KRScene *)pScene;
{
glViewport(0, 0, KRENGINE_SHADOW_MAP_WIDTH-1, KRENGINE_SHADOW_MAP_HEIGHT-1);
glBindFramebuffer(GL_FRAMEBUFFER, shadowFramebuffer[iShadow]);
glClearDepthf(1.0f);