GPU: More consistently clear ptrs on DeviceLost().

Rather get a null pointer crash than confusing buggy use-after-free
excitement.
This commit is contained in:
Unknown W. Brackets committed 2022-08-23 20:15:30 -07:00
1 parent 47b7305bf5
commit 7ec62a32b4
11 files changed
+17 -2

No files matched your search

+1 -1
View File
@@ -2437,7 +2437,7 @@ void FramebufferManagerCommon::DeviceLost() {
void FramebufferManagerCommon::DeviceRestore(Draw::DrawContext *draw) {
draw_ = draw;
draw2D_.DeviceRestore(draw_);
presentation_->DeviceRestore(draw);
presentation_->DeviceRestore(draw_);
}
void FramebufferManagerCommon::DrawActiveTexture(float x, float y, float w, float h, float destW, float destH, float u0, float v0, float u1, float v1, int uvRotation, int flags) {