Splitting logging core into poly.

This commit is contained in:
Ben Vanik
2014-08-21 20:26:55 -07:00
parent 08b0226a16
commit e1b0388faf
19 changed files with 194 additions and 144 deletions

View File

@@ -125,7 +125,7 @@ void D3D11GraphicsDriver::InitializeInvalidTexture() {
HRESULT hr = device_->CreateTexture2D(
&texture_desc, &initial_data, (ID3D11Texture2D**)&texture);
if (FAILED(hr)) {
XEFATAL("D3D11: unable to create invalid texture");
PFATAL("D3D11: unable to create invalid texture");
return;
}
@@ -155,7 +155,7 @@ void D3D11GraphicsDriver::InitializeInvalidTexture() {
hr = device_->CreateSamplerState(
&sampler_desc, &invalid_texture_sampler_state_);
if (FAILED(hr)) {
XEFATAL("D3D11: unable to create invalid sampler state");
PFATAL("D3D11: unable to create invalid sampler state");
return;
}
}

View File

@@ -401,7 +401,7 @@ bool D3D11ProfilerDisplay::SetupFont() {
hr = device->CreateSamplerState(
&sampler_desc, &font_sampler_state_);
if (FAILED(hr)) {
XEFATAL("D3D11: unable to create invalid sampler state");
PFATAL("D3D11: unable to create invalid sampler state");
return false;
}