# HG changeset patch # User koda # Date 1334274071 -7200 # Node ID 53a87a4c7b35aaa52785143e3133798274c7a765 # Parent 85e810230372486c91db048883253f6afe78c31a minor gl debug/comments diff -r 85e810230372 -r 53a87a4c7b35 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Fri Apr 13 00:18:10 2012 +0200 +++ b/hedgewars/uStore.pas Fri Apr 13 01:41:11 2012 +0200 @@ -623,7 +623,9 @@ {$IFDEF SDL13} // this function creates an opengles1.1 context by default on mobile devices - // use SDL_GL_SetAttribute to change this behaviour + // unless you un-comment this two attributes + //SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); + //SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); if SDLGLcontext = nil then SDLGLcontext:= SDL_GL_CreateContext(SDLwindow); SDLTry(SDLGLcontext <> nil, true); @@ -665,7 +667,9 @@ AddFileLog('OpenGL-- Renderer: ' + shortstring(pchar(glGetString(GL_RENDERER)))); AddFileLog(' |----- Vendor: ' + shortstring(pchar(glGetString(GL_VENDOR)))); AddFileLog(' |----- Version: ' + shortstring(pchar(glGetString(GL_VERSION)))); - AddFileLog(' \----- Texture Size: ' + inttostr(MaxTextureSize)); + AddFileLog(' |----- Texture Size: ' + inttostr(MaxTextureSize)); + AddFileLog(' \----- Extensions: ' + shortstring(pchar(glGetString(GL_EXTENSIONS)))); + //TODO: don't have the Extensions line trimmed but slipt it into multiple lines {$IFNDEF S3D_DISABLED} if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) or (cStereoMode = smAFR) then