• 13
• 18
• 19
• 27
• 10

Problems with directX

This topic is 3139 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I'm trying to run the code from this tutorial in visual studio 2008: http://thetavern.servebeer.com/?p=articles&a=D3DTutorial1 After messing with the library paths a bit I finally got it compiling. Running it triggers the error checking here:
	// Need to see if this format is ok as a backbuffer format in this adapter mode
mode.Format, D3DUSAGE_RENDERTARGET, D3DRTYPE_SURFACE, fmtBackbuffer);
if(FAILED(hResult))
{
m_strError = L"Unable to choose a display format!";
m_pD3D->Release();
m_pD3D = NULL;
return false;
}

Share on other sites
Interesting, I never thought that'd fail... what do the Debug Runtimes say?

What that error essentially means is that the current desktop format isn't a valid format for D3D to use - which doesn't really make sense since explorer will be using that format for rendering already...

EDIT: From that output, it seems that your drivers can't do hardware acceleration in that graphics mode - do you have the latest drivers for your card? This sort of thing can happen if you don't have any drivers installed, and Windows is falling back to software support, or if you have the 3D acceleration settings turned off somewhere.

EDIT #2: This looks relevant, it seems to be a D3D SDK problem - you can disable the debug runtimes for now until the August 2009 SDK comes out.