mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-27 08:05:42 +00:00
Bump D3D11 serialise version for ce0a67e8, and add backwards compat
* This is the first attempt at backwards logfile compatibility. Since most captures are fairly ephemeral I don't know to what degree I'll go in future to support old captures, but since this was a fairly trivial example (just skip serialising a bit of data if it's an old version without it), I'll test this out.
This commit is contained in:
@@ -228,15 +228,15 @@ private:
|
||||
|
||||
if(!WrappedID3D11Device::IsAlloc(*ppDevice))
|
||||
{
|
||||
D3D11InitParams *params = new D3D11InitParams;
|
||||
params->DriverType = DriverType;
|
||||
params->Flags = Flags;
|
||||
params->SDKVersion = SDKVersion;
|
||||
params->NumFeatureLevels = FeatureLevels;
|
||||
D3D11InitParams params;
|
||||
params.DriverType = DriverType;
|
||||
params.Flags = Flags;
|
||||
params.SDKVersion = SDKVersion;
|
||||
params.NumFeatureLevels = FeatureLevels;
|
||||
if(FeatureLevels > 0)
|
||||
memcpy(params->FeatureLevels, pFeatureLevels, sizeof(D3D_FEATURE_LEVEL)*FeatureLevels);
|
||||
memcpy(params.FeatureLevels, pFeatureLevels, sizeof(D3D_FEATURE_LEVEL)*FeatureLevels);
|
||||
|
||||
WrappedID3D11Device *wrap = new WrappedID3D11Device(*ppDevice, params);
|
||||
WrappedID3D11Device *wrap = new WrappedID3D11Device(*ppDevice, ¶ms);
|
||||
|
||||
RDCDEBUG("created wrapped device.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user