mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix texturedRectShadowMap for platforms without GL_IMAGE_TEXTURES_SUPPORT
This commit is contained in:
parent
81c003a872
commit
37963159e4
|
@ -857,8 +857,12 @@ bool texturedRectShadowMap(const OGLRender::TexturedRectParams &)
|
||||||
FrameBuffer * pCurrentBuffer = frameBufferList().getCurrent();
|
FrameBuffer * pCurrentBuffer = frameBufferList().getCurrent();
|
||||||
if (pCurrentBuffer != NULL) {
|
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)) {
|
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);
|
pCurrentBuffer->m_pDepthBuffer->activateDepthBufferTexture(pCurrentBuffer);
|
||||||
SetDepthFogCombiner();
|
SetDepthFogCombiner();
|
||||||
|
#else
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user