X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_textures.pas;h=7e1bceaa7b7b1a3a164a23c138baaa2f1fdb1b46;hb=1478a411d9959a016392bb83b6e2260360159758;hp=52a1e9213d77d85ee12d94f93410fd4f13fbe0af;hpb=3dc2fe6b3d29cd54425db8f590e922f2dce50e99;p=d2df-editor.git diff --git a/src/engine/e_textures.pas b/src/engine/e_textures.pas index 52a1e92..7e1bcea 100644 --- a/src/engine/e_textures.pas +++ b/src/engine/e_textures.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -76,8 +75,6 @@ function CreateTexture (var tex: GLTexture; Width, Height, aFormat: Word; pData: var Texture: GLuint; fmt: GLenum; - buf: PByte; - f, c: Integer; begin tex.width := Width; tex.height := Height; @@ -216,12 +213,7 @@ end; function LoadTextureMem (pData: Pointer; dataSize: LongInt; var Texture: GLTexture; var pWidth, pHeight: Word; Fmt: PWord=nil): Boolean; var - image, ii: PByte; - width, height: Integer; - imageSize: Integer; img: TImageData; - x, y: Integer; - clr: TColor32Rec; begin result := false; pWidth := 0; @@ -245,7 +237,6 @@ end; function LoadTextureMemEx (pData: Pointer; dataSize: LongInt; var Texture: GLTexture; fX, fY, fWidth, fHeight: Word; Fmt: PWord=nil): Boolean; var image, ii: PByte; - width, height: Integer; imageSize: Integer; img: TImageData; x, y: Integer;