Page 1 of 1

IDXGIAdapter

Posted: March 13th, 2020, 8:27 pm
by aslanbey0158
Hello.
I am trying to work above yumtard's project
At this point i have problem with graphic card therefore i try adding IDXGIAdapter.
if i solve this problem, i suppose solve other problems on behalf of me

Re: IDXGIAdapter

Posted: March 14th, 2020, 6:47 am
by albinopapa
A couple things.

1) Missing Window::HrException::GetErrorDescription function definition.
2) When quitting the program, I get an exception thrown from released DX interfaces. When you use Microsoft::WRL::ComPtr you do not have to call Release(), ComPtr is a smart pointer like unique_ptr or shared_ptr, it will release the resources for you. Since that is all you're doing in Graphics, you can just get rid of the Graphics::~Graphics() destructor in Graphics.cpp and ~Graphics(); in Graphics.h files.

After fixing those two things, the program runs and exits without errors for me.