From 88d100acfb155d18d945d0d304a0d45458d73ddb Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Wed, 18 Dec 2013 13:09:11 -0500 Subject: [PATCH] b=929506; call wglMakeCurrent before Init to get lookup working; r=bjacob --- gfx/gl/GLContextProviderWGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/gl/GLContextProviderWGL.cpp b/gfx/gl/GLContextProviderWGL.cpp index 6bcbc0b94a7e..929659fc15a8 100644 --- a/gfx/gl/GLContextProviderWGL.cpp +++ b/gfx/gl/GLContextProviderWGL.cpp @@ -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;