mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
libgstgl: gstglcontext_cocoa: kCGLPFAStereo has been deprecated in 10.11
Also since the version scheme has changed (to include the micro number) since 10.10, use the MAC_OS_X_VERSION_* macro to avoid confusion.
This commit is contained in:
parent
b8e06e7311
commit
610f965be8
1 changed files with 7 additions and 5 deletions
|
@ -90,7 +90,6 @@ struct pixel_attr
|
|||
static struct pixel_attr pixel_attrs[] = {
|
||||
{kCGLPFAAllRenderers, "All Renderers"},
|
||||
{kCGLPFADoubleBuffer, "Double Buffered"},
|
||||
{kCGLPFAStereo, "Stereo"},
|
||||
{kCGLPFAAuxBuffers, "Aux Buffers"},
|
||||
{kCGLPFAColorSize, "Color Size"},
|
||||
{kCGLPFAAlphaSize, "Alpha Size"},
|
||||
|
@ -115,20 +114,23 @@ static struct pixel_attr pixel_attrs[] = {
|
|||
{kCGLPFAAcceleratedCompute, "Accelerated Compute"},
|
||||
{kCGLPFAOpenGLProfile, "OpenGL Profile"},
|
||||
{kCGLPFAVirtualScreenCount, "Virtual Screen Count"},
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1090
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11
|
||||
{kCGLPFAStereo, "Stereo"},
|
||||
#endif
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_9
|
||||
{kCGLPFACompliant, "Compliant"},
|
||||
{kCGLPFARemotePBuffer, "Remote PBuffer"},
|
||||
{kCGLPFASingleRenderer, "Single Renderer"},
|
||||
{kCGLPFAWindow, "Window"},
|
||||
#endif
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
|
||||
// {kCGLPFAOffScreen, "Off Screen"},
|
||||
// {kCGLPFAPBuffer, "PBuffer"},
|
||||
#endif
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
|
||||
// {kCGLPFAFullScreen, "Full Screen"},
|
||||
#endif
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
|
||||
// {kCGLPFAMPSafe, "MP Safe"},
|
||||
// {kCGLPFAMultiScreen, "Multi Screen"},
|
||||
// {kCGLPFARobust, "Robust"},
|
||||
|
|
Loading…
Reference in a new issue