Hello, I have a couple of questions about the scope of mapped buffer validity that I have not been able to determine the answers for concretely from reading the docs and would appreciate it if someone could provide some clarity.
If a buffer has been bound to GL_ARRAY_BUFFER, and mapped (using GL_ARRAY_BUFFER), if another buffer is bound to GL_ARRAY_BUFFER before the first has been unmapped, is the mapped pointer still valid?
My Current Thoughts: I think it should be valid as I don't see anything about map or unmap that seems to indicate it must remain bound for the duration of the map operation. Though it would have to be bound again to unmap.
If a buffer has been bound (to lets say... GL_ARRAY_BUFFER), and mapped (using GL_ARRAY_BUFFER), if that buffer is later (while still mapped) bound to another target (example: GL_COPY_WRITE_BUFFER) can it unmapped using GL_COPY_WRITE_BUFFER or must the buffer be mapped / unmapped from the same target for some reason?
My Current Thoughts: Again I suspect this should be valid as I understand the map / unmap to just use the (GL_ARRAY_BUFFER or GL_COPY_WRITE_BUFFER in this example) to look up the actual buffer which is to be mapped / unmapped.
I would appreciate any confirmation or clarification anyone can provide! Thanks in advance!