d3d: Fix drawpixels texture.

This commit is contained in:
Unknown W. Brackets 2014-09-09 23:55:00 -07:00
parent 22db52dbeb
commit 417bfc74c3

View file

@ -126,7 +126,7 @@ namespace DX9 {
usage = D3DUSAGE_DYNAMIC;
}
HRESULT hr = pD3Ddevice->CreateTexture(512, 272, 1, usage, D3DFMT(D3DFMT_A8R8G8B8), pool, &drawPixelsTex_, NULL);
if (!hr) {
if (FAILED(hr)) {
drawPixelsTex_ = nullptr;
ERROR_LOG(G3D, "Failed to create drawpixels texture");
}