/Graphics Fixed stable pipeline with no warnings

This commit is contained in:
lanariel 2014-01-17 09:05:18 +01:00
parent faa6efba57
commit ab0b9a925a
2 changed files with 4 additions and 3 deletions

View File

@ -88,6 +88,7 @@ namespace Oyster
Model::ModelInfo* mi = (Model::ModelInfo*)m->info;
if(mi->Vertices->GetBufferPointer() == NULL)
{
delete m;
return NULL;
}

View File

@ -161,10 +161,10 @@ HRESULT InitDirect3D()
m = Oyster::Graphics::API::CreateModel(L"crate2");
if(m==NULL)
m = Oyster::Graphics::API::CreateModel(L"crate");
m2 = Oyster::Graphics::API::CreateModel(L"crate");
m = Oyster::Graphics::API::CreateModel(L"christmastree");
m2 = Oyster::Graphics::API::CreateModel(L"christmastree");
m2->WorldMatrix = Oyster::Math3D::OrientationMatrix(Oyster::Math::Float3::null,Oyster::Math::Float3(0,5,0),Oyster::Math::Float3::null);
m3 = Oyster::Graphics::API::CreateModel(L"crate");
m3 = Oyster::Graphics::API::CreateModel(L"christmastree");
m3->WorldMatrix = Oyster::Math3D::OrientationMatrix(Oyster::Math::Float3::null,Oyster::Math::Float3(0,5,0),Oyster::Math::Float3::null);