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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user