Merge "fixing bug of shadowing a variable"

This commit is contained in:
David Turner
2011-07-03 05:43:57 -07:00
committed by Android Code Review

View File

@@ -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();