X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fopengl%2Fr_graphics.pas;h=3b60fe49de14e8865dc2817a39a0ea35b0ae1839;hb=0da9a438ff0d90e07b82d929065de68a106cb09e;hp=cb568b418977456013691eff26848e0c7fa01265;hpb=9615ae96661aed9886424c75479d322f555627a6;p=d2df-sdl.git diff --git a/src/game/opengl/r_graphics.pas b/src/game/opengl/r_graphics.pas index cb568b4..3b60fe4 100644 --- a/src/game/opengl/r_graphics.pas +++ b/src/game/opengl/r_graphics.pas @@ -22,7 +22,7 @@ uses {$IFDEF USE_SDL2} SDL2, {$ENDIF} - SysUtils, Classes, Math, e_log, e_texture, g_base, + SysUtils, Classes, Math, e_log, r_texture, g_base, MAPDEF, ImagingTypes, Imaging, ImagingUtility; type @@ -166,8 +166,6 @@ var e_RBO: GLuint = 0; e_RBOSupported: Boolean = True; e_Frame: GLuint = 0; - e_FrameW: Integer = -1; - e_FrameH: Integer = -1; //function e_getTextGLId (ID: DWORD): GLuint; begin result := e_Textures[ID].tx.id; end; @@ -376,9 +374,6 @@ begin DestroyFramebuffer; - e_FrameW := Width; - e_FrameH := Height; - glGetError(); glGenFramebuffers(1, @e_FBO);