mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Code cleanup: correct aux buffer detection in FrameBufferList::copyAux() and FrameBufferList::removeAux()
This commit is contained in:
parent
87f1ab79a0
commit
0671ea1b02
|
@ -700,7 +700,7 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt
|
|||
void FrameBufferList::copyAux()
|
||||
{
|
||||
for (auto iter = m_list.begin(); iter != m_list.end(); ++iter) {
|
||||
if (iter->m_width != VI.width && iter->m_height != VI.height)
|
||||
if (iter->isAuxiliary())
|
||||
FrameBuffer_CopyToRDRAM(iter->m_startAddress, true);
|
||||
}
|
||||
}
|
||||
|
@ -708,7 +708,7 @@ void FrameBufferList::copyAux()
|
|||
void FrameBufferList::removeAux()
|
||||
{
|
||||
for (auto iter = m_list.begin(); iter != m_list.end(); ++iter) {
|
||||
while (iter->m_width != VI.width && iter->m_height != VI.height) {
|
||||
while (iter->isAuxiliary()) {
|
||||
if (&(*iter) == m_pCurrent) {
|
||||
m_pCurrent = nullptr;
|
||||
gfxContext.bindFramebuffer(bufferTarget::DRAW_FRAMEBUFFER, ObjectHandle::null);
|
||||
|
|
Loading…
Reference in New Issue
Block a user