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:
parent
47719e3ce3
commit
12f9f8d5d0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user