DirectX Error
I am learning DirectX. I have just finished my first application, but I have ran into a problem.
I am not sure if this is enough info (if it isn't ask me what you need to know):
It does compile in VS 2013, but when I call
showBackBuffer()
:
1 2 3 4 5 6 7 8 9
|
HRESULT Graphics::showBackBuffer()
{
result = E_FAIL;
device3d->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 255, 0), 1.0f, 0);
device3d->BeginScene();
device3d->EndScene();
result = device3d->Present(NULL, NULL, NULL, NULL);
return result;
}
|
It says this:
Unhandled exception at 0x011719C6 in Game.exe: 0xC0000005: Access violation reading location 0x00000000.
|
I am not sure what to do.
Thanks for your help!
EDIT: FIXED IT
Last edited on
Topic archived. No new replies allowed.