summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e3c842a)
raw | patch | inline | side by side (parent: e3c842a)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 10 Feb 2020 17:22:33 +0000 (20:22 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 10 Feb 2020 17:22:33 +0000 (20:22 +0300) |
src/engine/e_graphics.pas | patch | blob | history |
index 5b117f0433010d0a438ab68d0db3104282711971..236e069334f56f0036529fe27f3995f671ead9a7 100644 (file)
e_TextureFonts: array of TTextureFont = nil;
e_CharFonts: array of TCharFont;
//e_SavedTextures: array of TSavedTexture;
-{$IFNDEF HEADLESS}
+{$IF NOT DEFINED(HEADLESS) AND NOT DEFINED(USE_GLES1)}
e_FBO: GLuint = 0;
e_RBO: GLuint = 0;
e_Frame: GLuint = 0;
procedure e_ResizeFramebuffer(Width, Height: Integer);
begin
-{$IFNDEF HEADLESS}
+{$IF NOT DEFINED(HEADLESS) AND NOT DEFINED(USE_GLES1)}
if e_NoGraphics then Exit;
glBindTexture(GL_TEXTURE_2D, 0);
procedure e_BlitFramebuffer(WinWidth, WinHeight: Integer);
begin
-{$IFNDEF HEADLESS}
+{$IF NOT DEFINED(HEADLESS) AND NOT DEFINED(USE_GLES1)}
if (e_FBO = 0) or (e_Frame = 0) or e_NoGraphics then exit;
glDisable(GL_BLEND);
glEnable(GL_TEXTURE_2D);