--- a/hedgewars/uRender.pas Thu Sep 10 04:59:02 2015 +0200
+++ b/hedgewars/uRender.pas Thu Sep 10 18:22:52 2015 +0200
@@ -360,6 +360,7 @@
function glLoadExtension(extension : shortstring) : boolean;
begin
+(*
//TODO: pas2c does not handle {$IF (GLunit = gles11) OR DEFINED(PAS2C)}
{$IFNDEF PAS2C}
{$IF GLunit = gles11}
@@ -378,6 +379,11 @@
{$ELSE} // pas2c part
glLoadExtension:= false;
{$ENDIF}
+*)
+
+ extension:= extension; // avoid hint
+ glLoadExtension:= false;
+ AddFileLog('OpenGL - "' + extension + '" skipped')
end;
{$IFDEF USE_S3D_RENDERING OR USE_VIDEO_RECORDING}
@@ -428,17 +434,6 @@
tmpint: LongInt;
tmpn: LongInt;
begin
-{$IFDEF MOBILE}
- // TODO: this function creates an opengles1.1 context
- // un-comment below and add proper logic to support opengles2.0
- //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);
- SDL_GL_SetSwapInterval(1);
-{$ENDIF}
-
// suppress hint/warning
AuxBufNum:= AuxBufNum;