obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html
------------------------------------------------------------
-Version 3.0.0 unstable
+Version 3.0.1
------------------------------------------------------------
History
20-11-2013
bfFormat: TbmpBitfieldFormat;
pSourceLine, pDestLine: PByte;
pSourceMD, pDestMD: Pointer;
- x, y: Integer;
+ x, y: Cardinal;
pixel: TglBitmapPixelData;
begin
bfFormat := TbmpBitfieldFormat.Create;
TempPtr: PByte;
Size: Integer;
begin
- result := nil;
Temp := (ClassType.Create as TglBitmap);
try
// copy texture data if assigned
procedure TglBitmap2D.GetDataFromTexture;
var
Temp: PByte;
- TempWidth, TempHeight: Integer;
- TempIntFormat: GLint;
+ TempWidth, TempHeight: GLint;
+ TempIntFormat: GLenum;
IntFormat, f: TglBitmapFormat;
FormatDesc: TFormatDescriptor;
begin
// Request Data
glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_WIDTH, @TempWidth);
glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_HEIGHT, @TempHeight);
- glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_INTERNAL_FORMAT, @TempIntFormat);
+ glGetTexLevelParameteriv(Target, 0, GL_TEXTURE_INTERNAL_FORMAT, PGLint(@TempIntFormat));
IntFormat := tfEmpty;
for f := Low(TglBitmapFormat) to High(TglBitmapFormat) do begin