diff --git a/gfx/angle/src/libGLESv2/renderer/d3d9/RenderTarget9.cpp b/gfx/angle/src/libGLESv2/renderer/d3d9/RenderTarget9.cpp index 9456e482a165..a3f2e709d3a0 100644 --- a/gfx/angle/src/libGLESv2/renderer/d3d9/RenderTarget9.cpp +++ b/gfx/angle/src/libGLESv2/renderer/d3d9/RenderTarget9.cpp @@ -80,9 +80,7 @@ RenderTarget9::RenderTarget9(Renderer *renderer, GLsizei width, GLsizei height, 0, FALSE, &mRenderTarget, NULL); } - if (result == D3DERR_OUTOFVIDEOMEMORY || - result == E_INVALIDARG || - result == E_OUTOFMEMORY) + if (result == D3DERR_OUTOFVIDEOMEMORY || result == E_OUTOFMEMORY) { gl::error(GL_OUT_OF_MEMORY);