hedgewars/uStore.pas
branchexperimental3D
changeset 3696 6009d8378422
parent 3692 bbec1275e46f
child 4004 b1c2c2f6fc5e
--- a/hedgewars/uStore.pas	Mon Aug 02 15:05:56 2010 +0200
+++ b/hedgewars/uStore.pas	Wed Aug 18 20:29:41 2010 +0200
@@ -803,7 +803,7 @@
     SDL_FreeSurface(MissionIcons);
     FreeTexture(ropeIconTex);
     FreeTexture(HHTexture);
-    if isStereoEnabled then
+    if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) or (cStereoMode = smAFR) then
     begin
         glDeleteTextures(1, @texl);
         glDeleteRenderbuffersEXT(1, @depthl);
@@ -1192,7 +1192,7 @@
         cGPUVendor:= gvIntel;
 //SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two');
 
-    if isStereoEnabled then
+    if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) or (cStereoMode = smAFR) then
     begin
         // prepare left and right frame buffers and associated textures
         glLoadExtension('GL_EXT_framebuffer_object');