Henri Verbeet : wined3d: Pass "reset_enum_callback" directly to wined3d_device_reset().

Alexandre Julliard julliard at winehq.org
Tue Jul 26 11:37:53 CDT 2011

Module: wine
Branch: master
Commit: 0739cae273387d4ee4ac987d583d5ec3105c792d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0739cae273387d4ee4ac987d583d5ec3105c792d

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Jul 25 20:45:06 2011 +0200

wined3d: Pass "reset_enum_callback" directly to wined3d_device_reset().

It would have been nice if we could do all of this inside wined3d, but we need
to determine what resources are in use by d3d8/d3d9, not wined3d. This is
mostly an issue for "implicit" resources like swapchain render targets and the
depth / stencil surface. The fact that we're having this problem probably
means we're doing it wrong. Since these implicit resources should only be
referenced by wined3d, we could probably just destroy and recreate the
swapchain, instead of the little updateSurfaceDesc() dance we currently do.


 dlls/d3d8/device.c        |   24 +++++-------------------
 dlls/d3d9/device.c        |   27 +++++++--------------------
 dlls/wined3d/device.c     |   11 ++++++++++-
 dlls/wined3d/wined3d.spec |    2 +-
 include/wine/wined3d.h    |    4 +++-
 5 files changed, 26 insertions(+), 42 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=0739cae273387d4ee4ac987d583d5ec3105c792d

More information about the wine-cvs mailing list