- Fix for compiling 'uRender.pas' ios-revival
authorantonc27 <antonc27@mail.ru>
Sat, 08 Aug 2015 21:37:19 +0200
branchios-revival
changeset 11085 18722e5bd386
parent 11084 9ff03eddd950
child 11086 95f97c4d154c
- Fix for compiling 'uRender.pas' Note: Construction "{$IF GLunit = gles11}" are not valid at all! Assumptions: We are not using pas2c and using OpenGL ES 1.1
hedgewars/uRender.pas
--- a/hedgewars/uRender.pas	Sat Aug 08 21:25:59 2015 +0200
+++ b/hedgewars/uRender.pas	Sat Aug 08 21:37:19 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}