X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_texture.pas;h=3e578c8088d25b39612a400bded3946147606d2c;hb=9dca47bd3c931ac2de19aa738124ba843072c2b6;hp=11cbf0d39ced33f1f117f9999ca576e1cc8edacb;hpb=d7d166dc3cd287276202e862746208892c4cc89f;p=d2df-sdl.git diff --git a/src/engine/e_texture.pas b/src/engine/e_texture.pas index 11cbf0d..3e578c8 100644 --- a/src/engine/e_texture.pas +++ b/src/engine/e_texture.pas @@ -1,9 +1,8 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * 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 @@ -23,8 +22,8 @@ unit e_texture; interface uses - GL, GLExt, SysUtils, e_log, - ImagingTypes, Imaging, ImagingUtility; + {$INCLUDE ../nogl/noGLuses.inc} + SysUtils, e_log, ImagingTypes, Imaging, ImagingUtility; type GLTexture = record @@ -103,6 +102,7 @@ begin Exit; end; + Texture := 0; glGenTextures(1, @Texture); tex.id := Texture; glBindTexture(GL_TEXTURE_2D, Texture);