vrend: Track sub-ctx in queries
Add the sub context id to the query structure and set it current before checking the query. This is necessary as switching context is not enough to restore the GL context associated to a query object.
Edited by Antonio Caggiano