mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-12 21:47:03 +03:00
Refactored Index/Vertex Buffer
Now uses ComPtr
This commit is contained in:
parent
aff227e84a
commit
a82a338795
20 changed files with 207 additions and 189 deletions
9
TR5Main/Renderer/Utils.cpp
Normal file
9
TR5Main/Renderer/Utils.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "framework.h"
|
||||
#include "Utils.h"
|
||||
#include <winerror.h>
|
||||
|
||||
void T5M::Renderer::Utils::throwIfFailed(const HRESULT& res)
|
||||
{
|
||||
if (FAILED(res))
|
||||
throw std::exception("An error occured!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue