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
This commit is contained in:
parent
e490db597a
commit
e2c0faf71c
@ -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); )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user