# HG changeset patch # User sheepluva # Date 1412247678 -7200 # Node ID 9bf21d178d1382a6c2242a352fad6acd42c83b2d # Parent b9d6463cf2ca04e5240ac3ea76787ecba145804a fix stereoscopic rendering leading to screen "running away to the left" since webgl merge (due to bug in webgl branch). reason was incomplete change of name/scope of variable stereoDepth -> cStereoDepth diff -r b9d6463cf2ca -r 9bf21d178d13 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Thu Oct 02 12:08:22 2014 +0200 +++ b/hedgewars/uWorld.pas Thu Oct 02 13:01:18 2014 +0200 @@ -79,7 +79,6 @@ amSel: TAmmoType = amNothing; missionTex: PTexture; missionTimer: LongInt; - stereoDepth: GLfloat; isFirstFrame: boolean; AMAnimType: LongInt; recTexture: PTexture; @@ -987,7 +986,7 @@ exit else if rm = rmLeftEye then d:= -d; - stereoDepth:= stereoDepth + d; + cStereoDepth:= cStereoDepth + d; openglTranslProjMatrix(d, 0, 0); {$ENDIF} end; @@ -998,7 +997,7 @@ {$IFDEF USE_S3D_RENDERING} if rm = rmDefault then exit; - openglTranslProjMatrix(-stereoDepth, 0, 0); + openglTranslProjMatrix(-cStereoDepth, 0, 0); cStereoDepth:= 0; {$ENDIF} end; @@ -2136,7 +2135,6 @@ missionTimer:= 0; missionTex:= nil; cOffsetY:= 0; - stereoDepth:= 0; AMState:= AMHidden; isFirstFrame:= true;