KRImport now compiling again

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40167
This commit is contained in:
kearwood
2012-11-24 00:25:44 +00:00
parent ac2195f0c9
commit 6a6ec7e166
4 changed files with 25 additions and 3 deletions

View File

@@ -262,8 +262,11 @@ void KRLight::render(KRCamera *pCamera, std::vector<KRLight *> &lights, const KR
}
}
#endif
void KRLight::allocateShadowBuffers(int cBuffers) {
#if TARGET_OS_IPHONE
// First deallocate buffers no longer needed
for(int iShadow = cBuffers; iShadow < KRENGINE_MAX_SHADOW_BUFFERS; iShadow++) {
if (shadowDepthTexture[iShadow]) {
@@ -307,6 +310,7 @@ void KRLight::allocateShadowBuffers(int cBuffers) {
}
m_cShadowBuffers = cBuffers;
#endif
}
@@ -329,7 +333,8 @@ int KRLight::configureShadowBufferViewports(const KRViewport &viewport)
}
void KRLight::renderShadowBuffers(KRCamera *pCamera)
{
{
#if TARGET_OS_IPHONE
for(int iShadow=0; iShadow < m_cShadowBuffers; iShadow++) {
if(!shadowValid[iShadow]) {
shadowValid[iShadow] = true;
@@ -371,9 +376,10 @@ void KRLight::renderShadowBuffers(KRCamera *pCamera)
getScene().render(pCamera, m_shadowViewports[iShadow].getVisibleBounds(), m_shadowViewports[iShadow], KRNode::RENDER_PASS_SHADOWMAP, true);
}
}
#endif
}
#endif
int KRLight::getShadowBufferCount()
{