Bug 996266 - E_INVALIDARG sometimes means OOM. - r=kamidphish

This commit is contained in:
Jeff Gilbert 2014-08-27 16:18:50 -07:00
parent fca978efc7
commit 6d1eaccc33

View File

@ -80,7 +80,9 @@ RenderTarget9::RenderTarget9(Renderer *renderer, GLsizei width, GLsizei height,
0, FALSE, &mRenderTarget, NULL);
}
if (result == D3DERR_OUTOFVIDEOMEMORY || result == E_OUTOFMEMORY)
if (result == D3DERR_OUTOFVIDEOMEMORY ||
result == E_INVALIDARG ||
result == E_OUTOFMEMORY)
{
gl::error(GL_OUT_OF_MEMORY);