2011/6/12 Mathias Fröhlich <mathias.froehl...@gmx.net>: > There is the implementation of glBufferData which detaches itself from the > underlying pipe_resource by unreferencing the old one and creating a new one.
I was looking into this issue and realized glBufferData is a special case, it adds the _NEW_BUFFER_OBJECT flag to dirty states, so we can check for it and rebind vertex arrays accordingly in that particular context. This approach may still fail with multiple contexts, because AFAIK the other contexts won't get that flag. All the other cases (i.e. what you are proposing) just won't work. Marek _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev