• Henri Verbeet's avatar
    ddraw: Verify that the surface is not a depth buffer in SetRenderTarget(). · 8aae165f
    Henri Verbeet authored
    This check is even more inconsistent between versions. Notice how the v2
    interface is particularly broken because it never AddRef()'s the new iface.
    This check also seems to be the original source for the questionable behaviour
    in d3d_device_set_render_target() of storing the new iface before checking the
    result of the wined3d_device_set_render_target(). (In particular,
    SetRenderTargetTest() in tests/d3d.c tests for this behavious.)
    8aae165f
device.c 228 KB