Bug 1969281 - Clear mResolvedDefaultFB on resize. r=ahale a=RyanVM

The size of mDefaultFB and mResolvedDefaultFB diverge on a resize if there is
an existing mResolvedDefaultFB from before the size change. Both need to be
cleared on a resize.

Differential Revision: https://phabricator.services.mozilla.com/D259489
This commit is contained in:
Lee Salzman
2025-07-31 23:35:43 +00:00
committed by rvandermeulen@mozilla.com
parent b1f3323a94
commit aa0c95ed72

View File

@@ -514,6 +514,7 @@ void WebGLContext::Resize(uvec2 requestedSize) {
// Kill our current default fb(s), for later lazy allocation. // Kill our current default fb(s), for later lazy allocation.
mRequestedSize = requestedSize; mRequestedSize = requestedSize;
mDefaultFB = nullptr; mDefaultFB = nullptr;
mResolvedDefaultFB = nullptr;
mResetLayer = true; // New size means new Layer. mResetLayer = true; // New size means new Layer.
} }