Module: wine Branch: master Commit: eeb54b992253b28430c1b902f575c7a09d4cab71 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eeb54b992253b28430c1b902f5...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Oct 28 11:00:11 2009 +0100
wined3d: Keep better track of where we're using wined3d contexts.
The idea here is that we can restore the thread's current GL context on context_release() if it doesn't correspond to the current wined3d context on context_acquire().
---
dlls/wined3d/arb_program_shader.c | 38 +++++++--- dlls/wined3d/basetexture.c | 15 +++- dlls/wined3d/buffer.c | 34 +++++++-- dlls/wined3d/context.c | 26 ++++++- dlls/wined3d/cubetexture.c | 7 ++- dlls/wined3d/device.c | 69 +++++++++++++------ dlls/wined3d/drawprim.c | 14 +++- dlls/wined3d/glsl_shader.c | 8 ++- dlls/wined3d/query.c | 33 ++++++--- dlls/wined3d/surface.c | 139 +++++++++++++++++++++++++++--------- dlls/wined3d/swapchain.c | 6 +- dlls/wined3d/texture.c | 7 ++- dlls/wined3d/volumetexture.c | 8 +- dlls/wined3d/wined3d_private.h | 6 +- 14 files changed, 298 insertions(+), 112 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=eeb54b992253b28430c1b9...