TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 223 forks source link

Direct3D not working! #68

Closed maxoberberger closed 8 years ago

maxoberberger commented 8 years ago

Sparky fails to init Direct3D: "Ausnahme ausgelöst bei 0x0FA11D42 (SPCore.dll) in Sandbox.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x00000000." (sorry for having vs is german) This happens in DXContext.cpp. The D3D11CreateDevice method does not create a device, so when the ID3D11Device* dev pointer is used I get a NullpointerException (or whatever you call this in c++).

Uliori commented 8 years ago

I think that you need to install Windows SDK. For win 10, the link is : https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

maxoberberger commented 8 years ago

Thanks, that fixed the problem!

TheCherno commented 8 years ago

The reason you need the Windows SDK is probably because the Direct3D Debug Layer is enabled. If you disable it, I'm sure you won't need the SDK installed.