hedgewars/uStore.pas
branchexperimental3D
changeset 3696 6009d8378422
parent 3692 bbec1275e46f
child 4004 b1c2c2f6fc5e
equal deleted inserted replaced
3694:3e9c0634065c 3696:6009d8378422
   801         SpritesData[ii].Surface:= nil;
   801         SpritesData[ii].Surface:= nil;
   802     end;
   802     end;
   803     SDL_FreeSurface(MissionIcons);
   803     SDL_FreeSurface(MissionIcons);
   804     FreeTexture(ropeIconTex);
   804     FreeTexture(ropeIconTex);
   805     FreeTexture(HHTexture);
   805     FreeTexture(HHTexture);
   806     if isStereoEnabled then
   806     if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) or (cStereoMode = smAFR) then
   807     begin
   807     begin
   808         glDeleteTextures(1, @texl);
   808         glDeleteTextures(1, @texl);
   809         glDeleteRenderbuffersEXT(1, @depthl);
   809         glDeleteRenderbuffersEXT(1, @depthl);
   810         glDeleteFramebuffersEXT(1, @framel);
   810         glDeleteFramebuffersEXT(1, @framel);
   811         glDeleteTextures(1, @texr);
   811         glDeleteTextures(1, @texr);
  1190         cGPUVendor:= gvATI
  1190         cGPUVendor:= gvATI
  1191     else if StrPos(Str2PChar(vendor), Str2PChar('ati')) <> nil then
  1191     else if StrPos(Str2PChar(vendor), Str2PChar('ati')) <> nil then
  1192         cGPUVendor:= gvIntel;
  1192         cGPUVendor:= gvIntel;
  1193 //SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two');
  1193 //SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two');
  1194 
  1194 
  1195     if isStereoEnabled then
  1195     if (cStereoMode = smHorizontal) or (cStereoMode = smVertical) or (cStereoMode = smAFR) then
  1196     begin
  1196     begin
  1197         // prepare left and right frame buffers and associated textures
  1197         // prepare left and right frame buffers and associated textures
  1198         glLoadExtension('GL_EXT_framebuffer_object');
  1198         glLoadExtension('GL_EXT_framebuffer_object');
  1199 
  1199 
  1200         // left
  1200         // left