Fix typo - don't try to use wrong device pointer

This commit is contained in:
baldurk
2016-07-08 16:18:25 +03:00
parent 9cd6b1ead2
commit 8f1bad6de4
+1 -3
View File
@@ -417,8 +417,6 @@ ReplayCreateStatus D3D12_CreateReplayDevice(const char *logfile, IReplayDriver *
return eReplayCreate_APIInitFailed;
}
ID3D12Device *device = NULL;
D3D12InitParams initParams;
RDCDriver driverFileType = RDC_D3D12;
string driverName = "D3D12";
@@ -448,7 +446,7 @@ ReplayCreateStatus D3D12_CreateReplayDevice(const char *logfile, IReplayDriver *
return eReplayCreate_APIHardwareUnsupported;
}
WrappedID3D12Device *wrappedDev = (WrappedID3D12Device *)device;
WrappedID3D12Device *wrappedDev = (WrappedID3D12Device *)dev;
if(logfile)
wrappedDev->SetLogFile(logfile);
wrappedDev->SetLogVersion(initParams.SerialiseVersion);