[Lazarus] TOpenGLControl.DepthBits default value

Michalis Kamburelis michalis.kambi at gmail.com
Wed Jan 23 16:48:21 CET 2013


Kostas Michalopoulos wrote:
> AFAIK even if you ask for 24 and there is no support for it, you'll get
> a 16bit buffer anyway.
>

No. This is a required minimal value, at least for GLX and modern 
wglChoosePixelFormatARB. It was *possibly* treated in more relaxed way 
by the old ChoosePixelFormat, but you should not depend on that. Links 
to relevant docs are on 
http://wiki.freepascal.org/Extending_TOpenGLControl .

Michalis





More information about the Lazarus mailing list