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 2c027b274a
commit 8783581652

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;