mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix some more graphical glitches with FBE on the Raspberry Pi
See https://github.com/RetroPie/RetroPie-Setup/pull/1563
This commit is contained in:
parent
f48ab4828d
commit
f2babed36d
|
@ -160,6 +160,10 @@ void FrameBuffer::init(u32 _address, u32 _endAddress, u16 _format, u16 _size, u1
|
|||
m_fingerprint = false;
|
||||
|
||||
_initTexture(_width, _height, _format, _size, m_pTexture);
|
||||
#ifdef VC
|
||||
const GLenum discards[] = {GL_DEPTH_ATTACHMENT};
|
||||
glDiscardFramebufferEXT(GL_FRAMEBUFFER, 1, discards);
|
||||
#endif
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, m_FBO);
|
||||
|
||||
#ifdef GL_MULTISAMPLING_SUPPORT
|
||||
|
@ -590,6 +594,10 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt
|
|||
m_pCurrent = nullptr;
|
||||
} else {
|
||||
m_pCurrent->m_resolved = false;
|
||||
#ifdef VC
|
||||
const GLenum discards[] = {GL_DEPTH_ATTACHMENT};
|
||||
glDiscardFramebufferEXT(GL_FRAMEBUFFER, 1, discards);
|
||||
#endif
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, m_pCurrent->m_FBO);
|
||||
if (m_pCurrent->m_size != _size) {
|
||||
f32 fillColor[4];
|
||||
|
|
Loading…
Reference in New Issue
Block a user