b=929506; call wglMakeCurrent before Init to get lookup working; r=bjacob

This commit is contained in:
Vladimir Vukicevic 2013-12-18 13:09:11 -05:00
parent bff1f38394
commit 88d100acfb

View File

@ -320,6 +320,10 @@ public:
if (!mDC || !mContext)
return false;
// see bug 929506 comment 29. wglGetProcAddress requires a current context.
if (!sWGLLib[mLibType].fMakeCurrent(mDC, mContext))
return false;
SetupLookupFunction();
if (!InitWithPrefix("gl", true))
return false;