X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fengine%2Fe_graphics.pas;h=898c208e4bb7e2cc2d75f0481d91cd8851c51c29;hp=f2afd54004adf64ac075f26888dab9c23298e371;hb=ac201b02f10ef558087d50f6b03b4519ab567558;hpb=423556f23c02a18964bd2c1e125516c0c902ca46 diff --git a/src/engine/e_graphics.pas b/src/engine/e_graphics.pas index f2afd54..898c208 100644 --- a/src/engine/e_graphics.pas +++ b/src/engine/e_graphics.pas @@ -1,3 +1,4 @@ +{$MODE DELPHI} unit e_graphics; interface @@ -392,9 +393,9 @@ begin Result.X := 0; Result.Width := w; Result.Height := h; - + if e_NoGraphics then Exit; - + data := GetMemory(w*h*4); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, e_Textures[ID].tx.id);