diff --git a/Source/Plugins/Plugin_VideoDX9/Src/FramebufferManager.cpp b/Source/Plugins/Plugin_VideoDX9/Src/FramebufferManager.cpp index 64032990a3..c9d215f386 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/FramebufferManager.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/FramebufferManager.cpp @@ -97,17 +97,17 @@ void FramebufferManager::Create() { hr = s_efb_color_texture->GetSurfaceLevel(0, &s_efb_color_surface); } - CHECK(hr, "Create Color Texture"); + CHECK(hr, "Create Color Texture (hr=%#x)", hr); hr = D3D::dev->CreateTexture(1, 1, 1, D3DUSAGE_RENDERTARGET, s_efb_color_surface_Format, D3DPOOL_DEFAULT, &s_efb_colorRead_texture, NULL); - CHECK(hr, "Create Color Read Texture"); + CHECK(hr, "Create Color Read Texture (hr=%#x)", hr); if(s_efb_colorRead_texture) { s_efb_colorRead_texture->GetSurfaceLevel(0, &s_efb_color_ReadBuffer); } // Create an offscreen surface that we can lock to retrieve the data hr = D3D::dev->CreateOffscreenPlainSurface(1, 1, s_efb_color_surface_Format, D3DPOOL_SYSTEMMEM, &s_efb_color_OffScreenReadBuffer, NULL); - CHECK(hr, "Create Color offScreen Surface"); + CHECK(hr, "Create Color offScreen Surface (hr=%#x)", hr); // Select Zbuffer format supported by hardware. if (g_ActiveConfig.bEFBAccessEnable) @@ -128,7 +128,7 @@ void FramebufferManager::Create() if (!FAILED(hr)) break; } - CHECK(hr, "Depth Color Texture"); + CHECK(hr, "Depth Color Texture (hr=%#x)", hr); // Get the Surface if(s_efb_depth_texture) { @@ -155,14 +155,14 @@ void FramebufferManager::Create() break; } - CHECK(hr, "Create Depth Read texture"); + CHECK(hr, "Create Depth Read texture (hr=%#x)", hr); if(s_efb_depthRead_texture) { s_efb_depthRead_texture->GetSurfaceLevel(0, &s_efb_depth_ReadBuffer); } // Create an offscreen surface that we can lock to retrieve the data hr = D3D::dev->CreateOffscreenPlainSurface(4, 4, s_efb_depth_ReadBuffer_Format, D3DPOOL_SYSTEMMEM, &s_efb_depth_OffScreenReadBuffer, NULL); - CHECK(hr, "Create Depth offScreen Surface"); + CHECK(hr, "Create Depth offScreen Surface (hr=%#x)", hr); delete [] DepthTexFormats; } else @@ -170,7 +170,7 @@ void FramebufferManager::Create() s_efb_depth_surface_Format = D3DFMT_D24X8; hr = D3D::dev->CreateDepthStencilSurface(target_width, target_height, s_efb_depth_surface_Format, D3DMULTISAMPLE_NONE, 0, FALSE, &s_efb_depth_surface, NULL); - CHECK(hr, "CreateDepthStencilSurface"); + CHECK(hr, "CreateDepthStencilSurface (hr=%#x)", hr); } }