hedgewars/uWorld.pas
changeset 7301 bea42438a2ec
parent 7297 af64b509725c
child 7304 8b3575750cd2
equal deleted inserted replaced
7299:c633d00dc593 7301:bea42438a2ec
   955 
   955 
   956     if cStereoMode = smNone then
   956     if cStereoMode = smNone then
   957         begin
   957         begin
   958         glClear(GL_COLOR_BUFFER_BIT);
   958         glClear(GL_COLOR_BUFFER_BIT);
   959         DrawWorldStereo(Lag, rmDefault)
   959         DrawWorldStereo(Lag, rmDefault)
   960         end;
   960         end
   961 {$IFNDEF S3D_DISABLED}
   961 {$IFNDEF S3D_DISABLED}
   962     else if (cStereoMode = smAFR) then
   962     else if (cStereoMode = smAFR) then
   963         begin
   963         begin
   964         AFRToggle:= not AFRToggle;
   964         AFRToggle:= not AFRToggle;
   965         glClear(GL_COLOR_BUFFER_BIT);
   965         glClear(GL_COLOR_BUFFER_BIT);
  1064             glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE)
  1064             glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE)
  1065         else
  1065         else
  1066             glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE);
  1066             glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE);
  1067         DrawWorldStereo(Lag, rmRightEye);
  1067         DrawWorldStereo(Lag, rmRightEye);
  1068         end;
  1068         end;
       
  1069 {$ELSE}
       
  1070     ;
  1069 {$ENDIF}
  1071 {$ENDIF}
  1070     DebugAtlas;
  1072     DebugAtlas;
  1071 end;
  1073 end;
  1072 
  1074 
  1073 procedure ChangeDepth(rm: TRenderMode; d: GLfloat);
  1075 procedure ChangeDepth(rm: TRenderMode; d: GLfloat);