Skip to content

Commit

Permalink
[Fixed] To resolve the abnormal display caused by "FRAMEBUFFER_INCOMP…
Browse files Browse the repository at this point in the history
…LETE_DIMENSIONS" (#15539)
  • Loading branch information
GengineJS authored Jun 26, 2023
1 parent 1090830 commit d801230
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cocos/rendering/custom/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,11 @@ class DeviceRenderPass {
const resFbo = resGraph._vertices[resId]._object;
if (resTex.framebuffer && resFbo instanceof Framebuffer && resTex.framebuffer !== resFbo) {
resTex.framebuffer = resFbo;
} else if (resTex.texture) {
const desc = resGraph.getDesc(resId);
if (resTex.texture.width !== desc.width || resTex.texture.height !== desc.height) {
resTex.texture.resize(desc.width, desc.height);
}
}
}
if (!swapchain) swapchain = resTex.swapchain;
Expand Down

0 comments on commit d801230

Please sign in to comment.