From 4672adab3fb1e0a89aaf370d7c5735fa4a7e5490 Mon Sep 17 00:00:00 2001 From: Amit Feller Date: Wed, 29 Jun 2011 15:01:06 +0300 Subject: [PATCH] fixing bug of shadowing a variable --- .../emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp b/tools/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp index cb1188efa..1c77779ef 100644 --- a/tools/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp +++ b/tools/emulator/opengl/host/libs/Translator/EGL/EglWindowsApi.cpp @@ -464,7 +464,7 @@ EGLNativeContextType createContext(EGLNativeDisplayType display,EglConfig* cfg,E HDC dpy = NULL; if(display->needToSetCurrent(cfg->id())){ HWND hwnd = createDummyWindow(); - HDC dpy = GetDC(hwnd); + dpy = GetDC(hwnd); display->setCurrent(cfg->id(),DisplayInfo(dpy,hwnd)); } else { dpy = display->getCurrentDC();