From 3decb561ea97f3e363922d3560fe43037c63d466 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 10 Nov 2015 11:05:00 +0200 Subject: Surely a 24-bit depth buffer is enough We asked for a 64-bit one, which is rather preposterous. And the comment claimed we asked for a 32-bit one. Funnily, this same odd code and comment is found in half a dozen code samples on the Internet... Copy pasta rules. Change-Id: Ie54a7b75e07cfe0ffd98ec330ce63158d2d15415 --- vcl/source/opengl/OpenGLContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index ed035cb02035..695a2259c2ec 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -825,7 +825,7 @@ bool OpenGLContext::ImplInit() 0, // Shift Bit Ignored 0, // No Accumulation Buffer 0, 0, 0, 0, // Accumulation Bits Ignored - 64, // 32 bit Z-BUFFER + 24, // 24 bit z-buffer 8, // stencil buffer 0, // No Auxiliary Buffer 0, // now ignored -- cgit