--- 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');