18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 07:36:02 +01:00

fix(render): textures of a far vehicle no longer come back black with gfx.resource.move (#308)

This commit is contained in:
2026-11-09 23:41:14 +00:00
committed by GitHub
parent 685258d787
commit c9792672c6
2 changed files with 73 additions and 20 deletions

View File

@@ -117,6 +117,9 @@ public:
// takes over the data read by a worker thread, waiting for it if needed
void complete_data();
// with gfx.resource.move, copies the gl texture back into the data before it's released. requires the texture bound
bool read_back_compressed();
void read_back_uncompressed();
// members
std::shared_ptr<texture_request> request; // data being read by a worker thread