• Henri Verbeet's avatar
    wined3d: Release the stateblock only after mode setting in wined3d_device_reset(). · d93e61f2
    Henri Verbeet authored
    While we're allowed to leave the device in a somewhat inconsistent state after
    a failed reset, such a state should be recoverable by calling reset again. If
    e.g. mode setting were to fail between the point where we destroy and recreate
    the stateblock a subsequent reset would crash because the device doesn't have
    a stateblock anymore.
    d93e61f2
device.c 202 KB