hedgewars/uStore.pas
changeset 2603 abed6070a669
parent 2602 3deb9ff104da
child 2610 8c00c1ee6cac
equal deleted inserted replaced
2602:3deb9ff104da 2603:abed6070a669
  1098 else if StrPos(Str2PChar(vendor), Str2PChar('ati')) <> nil then
  1098 else if StrPos(Str2PChar(vendor), Str2PChar('ati')) <> nil then
  1099 	cGPUVendor:= gvIntel;
  1099 	cGPUVendor:= gvIntel;
  1100 
  1100 
  1101 	
  1101 	
  1102 {$IFNDEF IPHONEOS}
  1102 {$IFNDEF IPHONEOS}
  1103 //SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two');
  1103 // since ATI seems to be unable to provide proper texture filtering/quality,
       
  1104 // do not even try to load the extension on ATI cards
       
  1105 
       
  1106 {$IFDEF DARWIN}
       
  1107 if true then
       
  1108 {$ELSE}
       
  1109 if cGPUVendor <> gvATI then
       
  1110 {$ENDIF}
       
  1111 	SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two')
       
  1112 {$IFDEF DEBUGFILE}
       
  1113 else
       
  1114 	AddFileLog('OpenGL: Skipped extension GL_ARB_texture_non_power_of_two due to ATI card')
       
  1115 {$ENDIF}
       
  1116 ; // do not touch this line! :)
  1104 {$ENDIF}
  1117 {$ENDIF}
  1105 
  1118 
  1106 // set view port to whole window
  1119 // set view port to whole window
  1107 glViewport(0, 0, cScreenWidth, cScreenHeight);
  1120 glViewport(0, 0, cScreenWidth, cScreenHeight);
  1108 
  1121