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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user