diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-09-17 00:55:29 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:41:06 +0100 |
commit | b9d2b63125bfcdd3e027c0673c2cb58d69e26829 (patch) | |
tree | 3a81f9f65ea62709ff08f868d5ae1bb2ac516e4d /game | |
parent | 28d74542ba2f5073641e834c1ebb3eb937f2adcb (diff) | |
download | usdx-b9d2b63125bfcdd3e027c0673c2cb58d69e26829.tar.gz usdx-b9d2b63125bfcdd3e027c0673c2cb58d69e26829.tar.xz usdx-b9d2b63125bfcdd3e027c0673c2cb58d69e26829.zip |
menu/gl_delayed_allocation: add helper for opengl allocation
opengl allocation could not be done in the constructor of the opengl
objects. The opengl calls only have effect when called form the opengl
thread, but the objects could be constructed from other threads. The
analogous applies to the destruction. This helper handles the
allocation on first use from the opengl thread and frees the resources
while calling dispose before real destruction (see Disposable). If
dispose is called from the opengl thread, it frees the resources
immediately, but if dispose is called from another thread it
waits (blocks) until the next use from the opengl thread is complete.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions