mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 01:39:42 +02:00
openglcontrol: added exception when no visual was found
git-svn-id: trunk@14437 -
This commit is contained in:
parent
3370c28e62
commit
89b48f4f33
@ -409,6 +409,8 @@ begin
|
||||
if visual=nil then exit;
|
||||
vi := get_xvisualinfo(visual);
|
||||
{$ENDIF}
|
||||
if vi=nil then
|
||||
raise Exception.Create('gdk_gl_context_share_new no visual found');
|
||||
|
||||
PrivateShareList:=PGdkGLContextPrivate(sharelist);
|
||||
if (sharelist<>nil) then
|
||||
|
@ -25,10 +25,10 @@
|
||||
</RunParams>
|
||||
<RequiredPackages Count="2">
|
||||
<Item1>
|
||||
<PackageName Value="LCL"/>
|
||||
<PackageName Value="LazOpenGLContext"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
<PackageName Value="LazOpenGLContext"/>
|
||||
<PackageName Value="LCL"/>
|
||||
</Item2>
|
||||
</RequiredPackages>
|
||||
<Units Count="2">
|
||||
|
@ -352,6 +352,8 @@ end;
|
||||
{------------------------------------------------------------------------------
|
||||
function CompareFileExt(const Filename, Ext: string;
|
||||
CaseSensitive: boolean): integer;
|
||||
|
||||
Ext can contain a point or not
|
||||
------------------------------------------------------------------------------}
|
||||
function CompareFileExt(const Filename, Ext: string;
|
||||
CaseSensitive: boolean): integer;
|
||||
|
@ -309,7 +309,7 @@ var
|
||||
Item: TPOFileItem;
|
||||
begin
|
||||
if (TranslatedValue='') then exit;
|
||||
//debugln('TPOFile.Add Identifier="',Identifier,'" OriginalValue="',OriginalValue,'" TranslatedValue="',TranslatedValue,'"');
|
||||
debugln('TPOFile.Add Identifier="',Identifier,'" OriginalValue="',OriginalValue,'" TranslatedValue="',TranslatedValue,'"');
|
||||
Item:=TPOFileItem.Create(Identifier,OriginalValue,TranslatedValue);
|
||||
FItems.Add(Item);
|
||||
FIdentifierToItem.Add(Identifier,Item);
|
||||
|
Loading…
Reference in New Issue
Block a user