Replies: 1 comment 2 replies
-
There is no way. You must pass data to bgfx. Change your code to load without failure before allocating memory. You can manage memory yourself, and then use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, let's say I have the following pseudo code:
Looking through the sources, it seems like the answer would be to use
bx::free
. But I'm worried I'm missing something here and there's a reason for not having some kind ofbgfx::dealloc
or so.Am I misunderstanding something really basic here?
Edit: just to clarify. I understand that if you pass the memory to bgfx then it will be released internally. But I'm talking about something happening between the allocation and sending it, which prevents you from doing so. Like the exception in the example above.
Beta Was this translation helpful? Give feedback.
All reactions