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:
@@ -88,6 +88,7 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *attribList)
|
|||||||
NSOpenGLPFAColorSize,(NSOpenGLPixelFormatAttribute)8,
|
NSOpenGLPFAColorSize,(NSOpenGLPixelFormatAttribute)8,
|
||||||
NSOpenGLPFAAlphaSize,(NSOpenGLPixelFormatAttribute)0,
|
NSOpenGLPFAAlphaSize,(NSOpenGLPixelFormatAttribute)0,
|
||||||
NSOpenGLPFADepthSize,(NSOpenGLPixelFormatAttribute)8,
|
NSOpenGLPFADepthSize,(NSOpenGLPixelFormatAttribute)8,
|
||||||
|
NSOpenGLPFAAccelerated, // use hardware accelerated context
|
||||||
(NSOpenGLPixelFormatAttribute)nil
|
(NSOpenGLPixelFormatAttribute)nil
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -100,6 +101,7 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *attribList)
|
|||||||
{
|
{
|
||||||
unsigned p = 0;
|
unsigned p = 0;
|
||||||
data[p++] = NSOpenGLPFAMinimumPolicy; // make _SIZE tags behave more like GLX
|
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); )
|
for ( unsigned arg = 0; attribList[arg] !=0 && p < WXSIZEOF(data); )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user