[Mesa-dev] [PATCH] r600g: Various patches
Marek Olšák
maraeo at gmail.com
Sun Jun 12 15:39:51 PDT 2011
2011/6/12 Mathias Fröhlich <Mathias.Froehlich at 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
More information about the mesa-dev
mailing list