Bug 1186002. Avoid testing for recreate on broken drivers. r=dvander

This commit is contained in:
Jeff Muizelaar 2015-07-22 10:32:31 -04:00
parent bf4f0f0f1f
commit 2187a30f1d

View File

@ -1735,6 +1735,12 @@ CheckForAdapterMismatch(ID3D11Device *device)
void CheckIfRenderTargetViewNeedsRecreating(ID3D11Device *device)
{
// CreateTexture2D is known to crash on lower feature levels, see bugs
// 1170211 and 1089413.
if (device->GetFeatureLevel() < D3D_FEATURE_LEVEL_10_0) {
return;
}
nsRefPtr<ID3D11DeviceContext> deviceContext;
device->GetImmediateContext(getter_AddRefs(deviceContext));
int backbufferWidth = 32; int backbufferHeight = 32;