gsdx-ogl: fix potential build failure on MS

git-svn-id: http://pcsx2.googlecode.com/svn/branches/gsdx-ogl@5185 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2012-04-28 09:39:23 +00:00
parent f5ee23aa37
commit f303da1c45
1 changed files with 6 additions and 2 deletions

View File

@ -441,12 +441,14 @@ EXPORT_C GSreadFIFO(uint8* mem)
if (theApp.GetConfig("renderer", 0) / 3 == 4) {
fprintf(stderr, "Disable FIFO1 on opengl\n");
}
#endif
s_gs->m_wnd.AttachContext();
#endif
s_gs->ReadFIFO(mem, 1);
#ifdef _LINUX
s_gs->m_wnd.DetachContext();
#endif
}
EXPORT_C GSreadFIFO2(uint8* mem, uint32 size)
@ -460,12 +462,14 @@ EXPORT_C GSreadFIFO2(uint8* mem, uint32 size)
#endif
//return;
}
#endif
s_gs->m_wnd.AttachContext();
#endif
s_gs->ReadFIFO(mem, size);
#ifdef _LINUX
s_gs->m_wnd.DetachContext();
#endif
}
EXPORT_C GSgifTransfer(const uint8* mem, uint32 size)