diff options
| author | Jason Maskell <[email protected]> | 2016-05-16 15:00:36 +0200 |
|---|---|---|
| committer | Jason Maskell <[email protected]> | 2016-05-16 15:00:36 +0200 |
| commit | 3eb017d032e0c542401ea202f7a62b7c7ddcd498 (patch) | |
| tree | 6470077bdc344f1493778976917f7217a3159707 /test/d3d11/util.cpp | |
| parent | Project now compiles with Cmake. (diff) | |
| download | waveworks_archive-3eb017d032e0c542401ea202f7a62b7c7ddcd498.tar.xz waveworks_archive-3eb017d032e0c542401ea202f7a62b7c7ddcd498.zip | |
Added the test_d3d11 app to the solution. Not compiling yet, mostly a paranoia commit.
Diffstat (limited to 'test/d3d11/util.cpp')
| -rw-r--r-- | test/d3d11/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/d3d11/util.cpp b/test/d3d11/util.cpp index 62b7772..0803ce0 100644 --- a/test/d3d11/util.cpp +++ b/test/d3d11/util.cpp @@ -28,10 +28,10 @@ #include "DXUT.h" -HRESULT LoadFile(LPCTSTR FileName, ID3DXBuffer** ppBuffer) +HRESULT LoadFile(LPCTSTR FileName, ID3DBlob** ppBuffer) { FILE* pF = NULL; - ID3DXBuffer* pBuffer = NULL; + ID3DBlob* pBuffer = NULL; if(_wfopen_s(&pF, FileName, L"rb")) goto error; @@ -44,7 +44,7 @@ HRESULT LoadFile(LPCTSTR FileName, ID3DXBuffer** ppBuffer) if(fseek(pF,0,SEEK_SET)) goto error; - if(FAILED(D3DXCreateBuffer(fileSize, &pBuffer))) + if(FAILED(D3DCreateBlob(fileSize, &pBuffer))) goto error; if(fileSize != fread(pBuffer->GetBufferPointer(), 1, fileSize, pF)) |