summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-11-10 11:17:33 +0200
committerTor Lillqvist <tml@collabora.com>2015-11-10 11:17:33 +0200
commit892ac9d1d477f2c9cb3805ee013e5bf4b4d11ede (patch)
tree1e167257de5fdc62edfc37a6790fa8669ec34797 /vcl
parent3decb561ea97f3e363922d3560fe43037c63d466 (diff)
Use a depth buffer on OS X, too
Change-Id: I35fa7c2dcec0731aed1f5effefa131ce3007d010
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salobj.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/osx/salobj.cxx b/vcl/osx/salobj.cxx
index 58e2c6436b1a..ca09d6c20ec6 100644
--- a/vcl/osx/salobj.cxx
+++ b/vcl/osx/salobj.cxx
@@ -59,6 +59,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWindowDat
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAAlphaSize, 8,
NSOpenGLPFAColorSize, 24,
+ NSOpenGLPFADepthSize, 24,
NSOpenGLPFAMultisample,
NSOpenGLPFASampleBuffers, (NSOpenGLPixelFormatAttribute)1,
NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)4,
@@ -74,6 +75,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWindowDat
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAAlphaSize, 8,
NSOpenGLPFAColorSize, 24,
+ NSOpenGLPFADepthSize, 24,
NSOpenGLPFAMultisample,
NSOpenGLPFASampleBuffers, (NSOpenGLPixelFormatAttribute)1,
NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)4,