X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Frenders%2Fopengl%2Fr_textures.pas;h=11dfdaeea189b39a6bc68ad41703e91254c270c6;hb=4a8853c0301bf982e69e54b551ea91c5cee5136f;hp=2ddf6873ee963d64e8b085c7d1a941a897041b61;hpb=71cb3ffacf071df5588669f3dbc24437e62c5903;p=d2df-sdl.git diff --git a/src/game/renders/opengl/r_textures.pas b/src/game/renders/opengl/r_textures.pas index 2ddf687..11dfdae 100644 --- a/src/game/renders/opengl/r_textures.pas +++ b/src/game/renders/opengl/r_textures.pas @@ -171,10 +171,12 @@ implementation GL_STACK_OVERFLOW: s := 'GL_STACK_OVERFLOW'; GL_STACK_UNDERFLOW: s := 'GL_STACK_UNDERFLOW'; GL_OUT_OF_MEMORY: s := 'GL_OUT_OF_MEMORY'; - GL_TABLE_TOO_LARGE: s := 'GL_TABLE_TOO_LARGE'; + {$IFNDEF USE_GLES1} + GL_TABLE_TOO_LARGE: s := 'GL_TABLE_TOO_LARGE'; + {$ENDIF} otherwise s := ''; end; - if s = '' then + if s <> '' then e_LogWritefln('%s: %s', [msg, s]) else e_LogWritefln('%s: error code %s', [msg, code]);