# HG changeset patch # User antonc27 # Date 1439062639 -7200 # Node ID 18722e5bd386bb9d381f9dc9896f95ab1752c0e2 # Parent 9ff03eddd95057ec4a05f34fe07d3f11244b5c9f - 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 diff -r 9ff03eddd950 -r 18722e5bd386 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}