attrList: TGLIntArray;\r
drawable: PGdkDrawable;\r
begin\r
+ if not Assigned(aControl) then\r
+ raise EArgumentException.Create('aControl is not assigned');\r
+\r
{\r
Temporary (realized) widget to get to display\r
}\r
FVisual := glXChooseVisual(FDisplay, DefaultScreen(FDisplay), @attrList[0]);\r
end;\r
end;\r
+ if not Assigned(FVisual) then\r
+ raise EGLXError.Create('choose visual failed');\r
\r
{\r
Most widgets inherit the drawable of their parent. In contrast to Windows, descending from\r