1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix texturedRectShadowMap for platforms without GL_IMAGE_TEXTURES_SUPPORT

This commit is contained in:
Sergey Lipskiy 2015-05-04 20:08:07 +06:00
parent 81c003a872
commit 37963159e4

View File

@ -857,8 +857,12 @@ bool texturedRectShadowMap(const OGLRender::TexturedRectParams &)
FrameBuffer * pCurrentBuffer = frameBufferList().getCurrent();
if (pCurrentBuffer != NULL) {
if (gDP.textureImage.size == 2 && gDP.textureImage.address >= gDP.depthImageAddress && gDP.textureImage.address < (gDP.depthImageAddress + gDP.colorImage.width*gDP.colorImage.width * 6 / 4)) {
#ifdef GL_IMAGE_TEXTURES_SUPPORT
pCurrentBuffer->m_pDepthBuffer->activateDepthBufferTexture(pCurrentBuffer);
SetDepthFogCombiner();
#else
return true;
#endif
}
}
return false;