TOpenGlControl lazarus / 1-Linux ---------------------------------------------------------------------- gtom · 2010-01-08 13:17 Hello, need some Help to get OpenGl working.. i started a lazarus project some weeks ago and got it working but i still have lots of problems with TOpenGlControl... On some (not all) Computers i got XErrors (Badmatch) if i compile with gtk2. The same code runs perfect with gtk (on all Computers) but fails running with gtk2. To test the behaivour i installed Ubuntu 8.10 (need 8.10 cause im using Realtime API) on 3 different computers, Just one was running the program in gtk2 & gkt , one was running in gtk and failed with an XError running on Gtk2, the third on ran on gtk but failed with an TApplication Exception running Gtk2... When i removed the OpenGlControl all 3 Computers run on Gtk & Gtk2 without errors... So the error is caused by the OpenGlControl... Some Questions: How can i debug or trap the XErrors??? i compared the glscene part of "create_context"  to the create_context part of TOpenGlControl... (gtkgcontext)... As i understand the code the OpenGlControl does not try to get a context with different attributes... But why does the code run on Gtk and fails on Gtk2??? regards, Thomas