Fixes a bug where unplugging the monitor from a video card and
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 May 2008 20:44:16 +0000 (20:44 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 May 2008 20:44:16 +0000 (20:44 +0000)
moving it to another video card would no longer show OpenGL plugins
until you relaunched Safari.

<rdar://problem/5790983> Add AllowOfflineDisplays pixel format
attribute to OpenGL contexts

Reviewed by Kevin Decker.

* Plugins/WebBaseNetscapePluginView.mm:
(-[WebBaseNetscapePluginView _createWindowedAGLContext]): Added
AGL_ALLOW_OFFLINE_RENDERERS for non-Tiger builds.
(-[WebBaseNetscapePluginView _createWindowlessAGLContext]): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34154 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/mac/ChangeLog
WebKit/mac/Plugins/WebBaseNetscapePluginView.mm

index 9edb9c1..ca896cd 100644 (file)
@@ -1,3 +1,19 @@
+2008-05-27  Timothy Hatcher  <timothy@apple.com>
+
+        Fixes a bug where unplugging the monitor from a video card and
+        moving it to another video card would no longer show OpenGL plugins
+        until you relaunched Safari.
+
+        <rdar://problem/5790983> Add AllowOfflineDisplays pixel format
+        attribute to OpenGL contexts
+
+        Reviewed by Kevin Decker.
+
+        * Plugins/WebBaseNetscapePluginView.mm:
+        (-[WebBaseNetscapePluginView _createWindowedAGLContext]): Added
+        AGL_ALLOW_OFFLINE_RENDERERS for non-Tiger builds.
+        (-[WebBaseNetscapePluginView _createWindowlessAGLContext]): Ditto.
+
 2008-05-25  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Darin Adler.
index 075d708..5f720ea 100644 (file)
@@ -2929,6 +2929,9 @@ static NPBrowserTextInputFuncs *browserTextInputFuncs()
         AGL_DEPTH_SIZE, 32,
         AGL_WINDOW,
         AGL_ACCELERATED,
+#ifndef BUILDING_ON_TIGER
+        AGL_ALLOW_OFFLINE_RENDERERS,
+#endif
         0
     };
     
@@ -2994,6 +2997,9 @@ static NPBrowserTextInputFuncs *browserTextInputFuncs()
         AGL_ALPHA_SIZE, 8,
         AGL_DEPTH_SIZE, 32,
         AGL_OFFSCREEN,
+#ifndef BUILDING_ON_TIGER
+        AGL_ALLOW_OFFLINE_RENDERERS,
+#endif
         0
     };