equal
deleted
inserted
replaced
985 begin |
985 begin |
986 glClear(GL_COLOR_BUFFER_BIT); |
986 glClear(GL_COLOR_BUFFER_BIT); |
987 DrawWorldStereo(Lag, rmDefault) |
987 DrawWorldStereo(Lag, rmDefault) |
988 end |
988 end |
989 {$IFDEF USE_S3D_RENDERING} |
989 {$IFDEF USE_S3D_RENDERING} |
990 else if (cStereoMode = smAFR) then |
|
991 begin |
|
992 AFRToggle:= not AFRToggle; |
|
993 glClear(GL_COLOR_BUFFER_BIT); |
|
994 if AFRToggle then |
|
995 DrawWorldStereo(Lag, rmLeftEye) |
|
996 else |
|
997 DrawWorldStereo(Lag, rmRightEye) |
|
998 end |
|
999 else if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) then |
990 else if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) then |
1000 begin |
991 begin |
1001 // create left fb |
992 // create left fb |
1002 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, framel); |
993 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, framel); |
1003 glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); |
994 glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); |