On Thu, Oct 6, 2016 at 11:28 AM, Henri Verbeet hverbeet@gmail.com wrote:
Still, ideally the context wouldn't have a device pointer either. I think the legitimate accesses to the device are mostly either accessing shared resources like textures and samplers, or using the device to get at the wined3d creation flags. We can probably store the shared resources in some structure inside the device, and then store a pointer to that in the context instead, and probably just copy the flags.
FWIW, a copy of the wined3d creation flags is stored in d3d_info, so "context->d3d_info.wined3d_creation_flags" is the proper way to get them.