From 417bfc74c320bfd8671a836e18fbddce9c1c110f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 9 Sep 2014 23:55:00 -0700 Subject: [PATCH] d3d: Fix drawpixels texture. --- GPU/Directx9/FramebufferDX9.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Directx9/FramebufferDX9.cpp b/GPU/Directx9/FramebufferDX9.cpp index 36fbd6cda3..e4bd0948d5 100644 --- a/GPU/Directx9/FramebufferDX9.cpp +++ b/GPU/Directx9/FramebufferDX9.cpp @@ -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"); }