Browse Source

* fixed bug: buffer overflow when exporting TGA files

master
Bergmann89 11 years ago
parent
commit
669392448a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      glBitmap.pas

+ 1
- 1
glBitmap.pas View File

@@ -4630,7 +4630,7 @@ var
begin
PixelSize := fPixelSize;

for Idx := 0 to Height * Width do begin
for Idx := 1 to Height * Width do begin
Temp := pByteArray(pTemp)^[2];
pByteArray(pTemp)^[2] := pByteArray(pTemp)^[0];
pByteArray(pTemp)^[0] := Temp;


Loading…
Cancel
Save