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:
baldurk
2014-11-10 17:53:31 +00:00
parent ef950b63db
commit c406804d24
5 changed files with 47 additions and 23 deletions
+7 -7
View File
@@ -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, &params);
RDCDEBUG("created wrapped device.");