[Lazarus] Lazarus and GLScene, bug in polygon rendering

Burkhard Carstens fpc at bcsoft.de
Sat Feb 16 14:33:25 CET 2008


Am Samstag, 16. Februar 2008 10:29 schrieb tcoq at free.fr:
> Hi all,
>
> I have a bug with GLScene when executing on Windows, compiled with
> Lazarus and FPC.
> GLScene's version is Lazarus', version 1.0.0.2 (Delphi's version's
> needs a lot more fixes to work on Lazarus).
>
> The program is very simple, see attached zip file, basically a
> polygon viewed from above in a GLSceneViewer. When I connect the
> viewer to the camera, the program hangs with a SIGSEGV signal in the
> ialmgicd!DrvSetContext procedure, it seems the GLU library transmits
> back bizarre pointers into the TGLNodes.RenderTesselatedPolygon
> procedure in GLMisc.
> I've printed out a copy of the values in the GLSceneDebug.Text file.
>
> Needless to say, the same code work perfectly with Delphi7 and the
> latest stable GLScene.
>
> Has anyone seen this before and could help with information to debug
> this?
Could you please retest with svn version of glscene4lazarus? I just 
checked glmisc.pas and it is exactly identical to the GLMisc.pas from 
original glscene (current cvs). So if the error still persists, it must 
be somewhere else ..

regards
 Burkhard




More information about the Lazarus mailing list