|
|
|
|
|
by sly010
2611 days ago
|
|
The problematic pattern I see here is whenever you manage remote state, your local guarantees about how that state changes just don't work. You would love to have the abstraction of a standalone texture and be able to pass it around as a value and change it's ownership, but you never really owned it. The only thing you ever owned is the context (or the connection in the case of the wayland protocol). The texture you borrowed.
Freeing your texture is equivalent to returning it to the context you borrowed it from. Of course not having an explicit context in the OpenGL API makes this much harder :) |
|