wined3d: Flush after surface updates.

This is similar to 5d1d07abcf. We need to flush
to ensure resource updates are visible in other contexts, since otherwise GL
doesn't make any ordering guarantees between contexts.
This commit is contained in:
Henri Verbeet 2011-09-14 20:17:30 +02:00 committed by Alexandre Julliard
parent b741cd02c3
commit 8009a4947b
1 changed files with 3 additions and 0 deletions

View File

@ -2436,6 +2436,9 @@ void surface_upload_data(const struct wined3d_surface *surface, const struct win
LEAVE_GL();
if (wined3d_settings.strict_draw_ordering)
wglFlush();
if (gl_info->quirks & WINED3D_QUIRK_FBO_TEX_UPDATE)
{
struct wined3d_device *device = surface->resource.device;