Re: [fpc-pascal] How to use OpenGL 2.0 fatures

2009-05-10 Thread Marco van de Voort
In our previous episode, Lord Satan said: > On Sat, 9 May 2009 22:29:51 +0400 > dmitry boyarintsev wrote: > > > ANY OS must call it (both Linux and OSX), otherwise function variables > > are not initialized! > But this is an FPC restriction not an OpenGL one. My own OpenGL headers did > not need

Re: [fpc-pascal] How to use OpenGL 2.0 fatures

2009-05-10 Thread Lord Satan
On Sat, 9 May 2009 22:29:51 +0400 dmitry boyarintsev wrote: > ANY OS must call it (both Linux and OSX), otherwise function variables > are not initialized! But this is an FPC restriction not an OpenGL one. My own OpenGL headers did not need this and they worked. Anyway, thanks for the informatio

Re: [fpc-pascal] How to use OpenGL 2.0 fatures

2009-05-09 Thread dmitry boyarintsev
Hello Lord Satan uses ...gl, glext... ... if not Load_GL_version_2_0 then begin writeln('OpenGL 2.0 is not supported'); Halt; end; ... Load_GL_version_2_0 function is declared at glext unit. you should call it before calling ANY 2.0 OpenGL function. also check out functions result,

[fpc-pascal] How to use OpenGL 2.0 fatures

2009-05-09 Thread Lord Satan
Hi all, I am trying to use FPCs OpenGL bindings instead of my own under Linux. But just replacing my bindings with the FPC ones does not seem to be enough as I get a segfault. GDB shows that using a OpenGL 2.0 core function crashes my program. I have seen that there are extension loading routines