From e2c0faf71c4ec2ae9a604d7e9c2850f081bff266 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 26 Sep 2013 06:31:20 +0000 Subject: [PATCH] always use hw-accel, fixes #15536, applied with thanks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/glcanvas.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/cocoa/glcanvas.mm b/src/osx/cocoa/glcanvas.mm index c1f80b852e..9f73bfec91 100644 --- a/src/osx/cocoa/glcanvas.mm +++ b/src/osx/cocoa/glcanvas.mm @@ -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); ) { -- 2.45.2