Move moving things around and preparing for the next step (cached vertexloaders).

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@957 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-10-25 13:27:28 +00:00
parent bc79d22f5e
commit 2f6d41e413
13 changed files with 243 additions and 207 deletions

View File

@ -79,7 +79,7 @@ void CVertexHandler::Shutdown()
void CVertexHandler::CreateDeviceObjects()
{
HRESULT hr;
if( FAILED( hr = D3D::dev->CreateVertexDeclaration( decl, &vDecl) ) )
if (FAILED(hr = D3D::dev->CreateVertexDeclaration(decl, &vDecl)))
{
MessageBox(0,"Failed to create vertex declaration","sdfsd",0);
return;
@ -96,7 +96,7 @@ void CVertexHandler::DestroyDeviceObjects()
{
if (vDecl)
vDecl->Release();
vDecl=0;
vDecl = 0;
}