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

Disable ResolveDepthBufferTexture creation for system without GL_MULTISAMPLING_SUPPORT

This commit is contained in:
Sergey Lipskiy 2015-05-16 14:55:07 +06:00
parent 47719e3ce3
commit 12f9f8d5d0

View File

@ -168,10 +168,12 @@ void DepthBuffer::initDepthBufferTexture(FrameBuffer * _pBuffer)
_initDepthBufferTexture(_pBuffer, m_pDepthBufferTexture, config.video.multisampling != 0);
}
#ifdef GL_MULTISAMPLING_SUPPORT
if (config.video.multisampling != 0 && m_pResolveDepthBufferTexture == NULL) {
m_pResolveDepthBufferTexture = textureCache().addFrameBufferTexture();
_initDepthBufferTexture(_pBuffer, m_pResolveDepthBufferTexture, false);
}
#endif
}
CachedTexture * DepthBuffer::resolveDepthBufferTexture(FrameBuffer * _pBuffer)