Failed to create driver indexbuffer

Started by
5 comments, last by fladur 14 years, 4 months ago
happy x-mas everybody when i called d3d->CreateDevice(), next message popup, "Direct3D9: (INFO) :Failed to create driver indexbuffer" as result search on web about this msg, guess that i can ignore. am i right? but, fail to alpha test on my game app. i try to find reason of alpha test fail. any relation of this? so, what the hell was this message? P.S. sorry to my bad the english language.
Advertisement
What do Debug runtimes have to say???
Don't forget to visit my blog here.
Hey! Just let noobs be noobs, after all, we once were noobs right?
DX say that :


Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.

...

Direct3D9: (INFO) :======================= Hal HWVP Pure device selected

Direct3D9: (INFO) :HalDevice Driver style 9

Direct3D9: (INFO) :Failed to create driver indexbuffer


in DX control pannel :
Debug Output Level is 4.
Use Debug Version checked.
Maximum Validation checked.
Enable Shader Debugging checked.
Break on Mem checked.
Break on D3D9 Err checked.
Can we have a little more information on your init code and video card drivers??
Don't forget to visit my blog here.
Hey! Just let noobs be noobs, after all, we once were noobs right?
why not? :-D


m_pd3d->GetDeviceCaps(D3DADAPTER_DEFAULT , D3DDEVTYPE_HAL , &m_d3dcaps );
...
// get screen information
HRESULT hr;
hr=m_pd3d->GetAdapterDisplayMode( D3DADAPTER_DEFAULT, &m_d3ddm );
...
DWORD BehaviorFlags=D3DCREATE_FPU_PRESERVE |
(QueryFeature(RQF_HARDWARETNL) ? D3DCREATE_HARDWARE_VERTEXPROCESSING : D3DCREATE_SOFTWARE_VERTEXPROCESSING);
D3DDEVTYPE d3dDevType = D3DDEVTYPE_HAL;
BehaviorFlags |= D3DCREATE_PUREDEVICE;
...
UINT AdapterToUse = D3DADAPTER_DEFAULT;

for( UINT Adapter = 0; Adapter < m_pd3d->GetAdapterCount(); Adapter++ )
{
D3DADAPTER_IDENTIFIER9 Identifier;
HRESULT Res = m_pd3d->GetAdapterIdentifier( Adapter, 0, &Identifier );
if( strstr( Identifier.Description, "PerfHUD" ) != 0 )
{
AdapterToUse = Adapter;
d3dDevType = D3DDEVTYPE_REF;
break;
}
}

if( FAILED( hr = m_pd3d->CreateDevice( AdapterToUse, d3dDevType, hWnd, BehaviorFlags, &m_d3dpp, &m_pd3dDevice ) ) )
{
SAFE_RELEASE(m_pd3d);
return false;
}


video card is radeon X1950 PRO now.
Alpha Test fail only happen on ATI.
when i run on NVIDIA, no problem.
ATI sucks!

thx.
Googling the warning gives This Post.

Basically, the driver doesn't support index buffers in hardware for some reason.
So maybe i'm using and all driver because i got support on my ATI X1650 Pro
Don't forget to visit my blog here.
Hey! Just let noobs be noobs, after all, we once were noobs right?

This topic is closed to new replies.

Advertisement