wined3d: Call wined3d_cs_emit_unload_resource outside of command stream.

Sebastian Lackner sebastian at fds-team.de
Fri Feb 17 01:49:44 CST 2017


On 17.02.2017 08:35, Henri Verbeet wrote:
> On 17 February 2017 at 03:47, Sebastian Lackner <sebastian at fds-team.de> wrote:
>> Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
>> ---
>>  dlls/wined3d/device.c |   15 ++++++++-------
>>  1 file changed, 8 insertions(+), 7 deletions(-)
>>
> Why would you want to do that?
> 
> 

Well, it depends a bit how you are planning to deal with
wined3d_cs_emit_*() calls on the command stream. Just appending at the
end of the stream wouldn't be a good idea here, because its executed
after all the contexts are already destroyed. Dispatching immediately
might work, but is a bit dangerous because there is currently only one
buffer, and you are replacing the content while the previous command
is still active. Feel free to ignore if you are planning to use a
different solution for this problem.

Best regards,
Sebastian




More information about the wine-devel mailing list