D3DXSaveTextureToFileW doesn’t working properly It seems that the screenshot is not being generated properly after this code: