function dglLoadLibrary(Name: PChar): Pointer;
begin
{$IFDEF DGL_WIN}
- Result := Pointer(LoadLibrary(Name));
+ Result := {%H-}Pointer(LoadLibrary(Name));
{$ENDIF}
{$IFDEF DGL_LINUX}
Result := False
else
{$IFDEF DGL_WIN}
- Result := FreeLibrary(HMODULE(LibHandle));
+ Result := FreeLibrary({%H-}HMODULE(LibHandle));
{$ENDIF}
{$IFDEF DGL_LINUX}
{$IFDEF DGL_WIN}
- Result := GetProcAddress(HMODULE(LibHandle), ProcName);
+ Result := GetProcAddress({%H-}HMODULE(LibHandle), ProcName);
if result <> nil then
exit;
Buffer: String;
MajorVersion, MinorVersion: Integer;
- procedure TrimAndSplitVersionString(Buffer: String; var Max, Min: Integer);
+ procedure TrimAndSplitVersionString(Buffer: String; out Max, Min: Integer);
// Peels out the X.Y form from the given Buffer which must contain a version string like "text Minor.Major.Build text"
// at least however "Major.Minor".
var
if GL_LibHandle = nil then
InitOpenGL;
- FillChar(PFDescriptor, SizeOf(PFDescriptor), 0);
+ FillChar(PFDescriptor{%H-}, SizeOf(PFDescriptor), 0);
with PFDescriptor do
begin
if not Assigned(GL_LibHandle) then
raise Exception.Create('GL_LibHandle is NIL. Could not load OpenGL library!');
- FillChar(PFDescriptor, SizeOf(PFDescriptor), 0);
+ FillChar(PFDescriptor{%H-}, SizeOf(PFDescriptor), 0);
with PFDescriptor do
begin