diff options
author | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2010-07-15 23:50:19 +0400 |
---|---|---|
committer | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2010-07-20 19:31:01 +0400 |
commit | 2997897f2464390395a8b50d7467dd1a75a7d7eb (patch) | |
tree | 3d95665ad7e106cf1937c4f54d429535011afb70 /overlay/d3d10.cpp | |
parent | fe9ae2d88d7edd4ffee1709059c06b7e22b3a24f (diff) |
Fix some gcc and cppcheck warnings
Diffstat (limited to 'overlay/d3d10.cpp')
-rw-r--r-- | overlay/d3d10.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/d3d10.cpp b/overlay/d3d10.cpp index f2f131077..38253fa5c 100644 --- a/overlay/d3d10.cpp +++ b/overlay/d3d10.cpp @@ -400,12 +400,12 @@ void D10State::draw() { timeT = t; } - HRESULT hr; dwMyThread = GetCurrentThreadId(); checkMessage(vp.Width, vp.Height); if (a_ucTexture && pSRView && (uiLeft != uiRight)) { + HRESULT hr; pOrigStateBlock->Capture(); pMyStateBlock->Apply(); @@ -606,12 +606,12 @@ extern "C" __declspec(dllexport) void __cdecl PrepareDXGI() { if ((ovi.dwMajorVersion >= 7) || ((ovi.dwMajorVersion == 6) && (ovi.dwBuildNumber >= 6001))) { HMODULE hD3D10 = LoadLibrary("D3D10.DLL"); HMODULE hDXGI = LoadLibrary("DXGI.DLL"); - HRESULT hr; if (hDXGI != NULL && hD3D10 != NULL) { CreateDXGIFactoryType pCreateDXGIFactory = reinterpret_cast<CreateDXGIFactoryType>(GetProcAddress(hDXGI, "CreateDXGIFactory")); ods("Got %p", pCreateDXGIFactory); if (pCreateDXGIFactory) { + HRESULT hr; IDXGIFactory * pFactory; hr = pCreateDXGIFactory(__uuidof(IDXGIFactory), (void**)(&pFactory)); if (pFactory) { |