[Lazarus] TOpenGLControl.DepthBits default value

Kostas Michalopoulos badsectoracula at gmail.com
Thu Jan 24 13:19:13 CET 2013


Ah, interesting. I probably had ChoosePixelFormat in mind which from what i
remember tries to get a close format and falls back to whatever is
available if it cannot find one.


On Wed, Jan 23, 2013 at 4:48 PM, Michalis Kamburelis <
michalis.kambi at gmail.com> wrote:

> 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<http://wiki.freepascal.org/Extending_TOpenGLControl>.
>
>
> Michalis
>
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130124/10f5f960/attachment-0003.html>


More information about the Lazarus mailing list