]> git.saurik.com Git - wxWidgets.git/commitdiff
always use hw-accel, fixes #15536, applied with thanks
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 26 Sep 2013 06:31:20 +0000 (06:31 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 26 Sep 2013 06:31:20 +0000 (06:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/glcanvas.mm

index c1f80b852e5e356bd00ced329914c3cf6b3a6698..9f73bfec91982a108c71d617161b68156bb2cec2 100644 (file)
@@ -88,6 +88,7 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *attribList)
         NSOpenGLPFAColorSize,(NSOpenGLPixelFormatAttribute)8,
         NSOpenGLPFAAlphaSize,(NSOpenGLPixelFormatAttribute)0,
         NSOpenGLPFADepthSize,(NSOpenGLPixelFormatAttribute)8,
+        NSOpenGLPFAAccelerated, // use hardware accelerated context
         (NSOpenGLPixelFormatAttribute)nil
     };
 
@@ -100,6 +101,7 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *attribList)
     {
         unsigned p = 0;
         data[p++] = NSOpenGLPFAMinimumPolicy; // make _SIZE tags behave more like GLX
+        data[p++] = NSOpenGLPFAAccelerated; // use hardware accelerated context
 
         for ( unsigned arg = 0; attribList[arg] !=0 && p < WXSIZEOF(data); )
         {