Download single-use renders right away.

Should prevent issues with the memory being reused soon after, hopefully.
See also #8781 and #7695.
This commit is contained in:
Unknown W. Brackets 2016-06-04 19:36:30 -07:00
parent 6bbcf74926
commit c12f835364
5 changed files with 30 additions and 30 deletions

View file

@ -62,6 +62,7 @@ struct VirtualFramebuffer {
u32 clutUpdatedBytes;
bool memoryUpdated;
bool depthUpdated;
bool firstFrameSaved;
u32 fb_address;
u32 z_address;
@ -252,6 +253,7 @@ protected:
void ShowScreenResolution();
bool ShouldDownloadFramebuffer(const VirtualFramebuffer *vfb) const;
void DownloadFramebufferOnSwitch(VirtualFramebuffer *vfb);
void FindTransferFramebuffers(VirtualFramebuffer *&dstBuffer, VirtualFramebuffer *&srcBuffer, u32 dstBasePtr, int dstStride, int &dstX, int &dstY, u32 srcBasePtr, int srcStride, int &srcX, int &srcY, int &srcWidth, int &srcHeight, int &dstWidth, int &dstHeight, int bpp) const;
VirtualFramebuffer *FindDownloadTempBuffer(VirtualFramebuffer *vfb);
virtual bool CreateDownloadTempBuffer(VirtualFramebuffer *nvfb) = 0;