render3d: gpu_tex_read_all and gpu_tex_write_all flush the frame first - the read-back is a submit of its own and took the image before the draws that fill it (the sky bake's BRDF table was all zeros at one width in three)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 23:18:05 +03:00
parent b5b3edc6ec
commit 92530c5db7
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,6 @@
bump: patch
type: fix
**A bake reads what was drawn.** `gpu_tex_read_all` (every bake's `bake_pack`) copied a texture on a
submit of its own without submitting the frame's draws first, so it read whatever the image held before
them: the sky bake's BRDF table came out all zeros for one light width and right for another, depending on
whether something else had flushed. It flushes first now, and so does `gpu_tex_write_all`.