b=929506; call wglMakeCurrent before Init to get lookup working; r=bjacob
authorVladimir Vukicevic <vladimir@pobox.com>
Wed, 18 Dec 2013 13:09:11 -0500
changeset 161069 8450bc58c1a62f2f8e8097f62a8f741bf66c01a2
parent 161068 8048271b130dc7c8b8934ac36732808759baeaef
child 161070 f01cde34009732d5d46ba304288f5c24601de108
push id37790
push uservladimir@pobox.com
push dateWed, 18 Dec 2013 18:09:45 +0000
treeherdermozilla-inbound@f01cde340097 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs929506
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
b=929506; call wglMakeCurrent before Init to get lookup working; r=bjacob
gfx/gl/GLContextProviderWGL.cpp
--- a/gfx/gl/GLContextProviderWGL.cpp
+++ b/gfx/gl/GLContextProviderWGL.cpp
@@ -315,16 +315,20 @@ public:
         return ContextTypeWGL;
     }
 
     bool Init()
     {
         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;
 
         return true;
     }
 
     bool MakeCurrentImpl(bool aForce = false)