Re: [fpc-devel] OpenGL 3.3 Core

2017-05-26 Thread Kostas Michalopoulos
I'd use an enum with values like (glcDefaultProfile, glcCoreProfile, glcCompatibilityProfile). Default would leave things as-is (when versioning is introduced to backends that currently do not support it, it will either use a backend-specific default or leave it unspecified where possible), Core

Re: [fpc-devel] OpenGL 3.3 Core

2017-05-26 Thread Mattias Gaertner
On Fri, 26 May 2017 18:21:47 +0300 Kostas Michalopoulos wrote: >[...] > I think the control should gain a Profile attribute to solve this. How would that "Profile attribute" look like? > And > while at it, also a ForwardCompatible attribute for debugging (forward >

Re: [fpc-devel] OpenGL 3.3 Core

2017-05-26 Thread Kostas Michalopoulos
The biggest problem you may have with this is requesting a post 2.1 context in Mac OS X since Apple decided to create a schism in versioning and only supports either 2.1 and below or 3.2 core and above. They do not have ARB_compatibility. Same with Mesa, meaning that on Linux you can use either

Re: [fpc-devel] OpenGL 3.3 Core

2017-05-26 Thread Michalis Kamburelis
2017-05-21 22:38 GMT+02:00 Mathias : > Is there an option with Lazarus own board means to activate the OpenGL 3.3 > core mode. Or is it enough for me to do the following? > > OpenGLControl.OpenGLMajorVersion := 3; > OpenGLControl.OpenGLMinorVersion := 3; > These