hedgewars/uStore.pas
changeset 2602 3deb9ff104da
parent 2601 21ed7cec1fa2
child 2603 abed6070a669
equal deleted inserted replaced
2601:21ed7cec1fa2 2602:3deb9ff104da
  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 // since ATI seems to be unable to provide proper texture filtering/quality,
  1103 //SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two');
  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! :)
       
  1117 {$ENDIF}
  1104 {$ENDIF}
  1118 
  1105 
  1119 // set view port to whole window
  1106 // set view port to whole window
  1120 glViewport(0, 0, cScreenWidth, cScreenHeight);
  1107 glViewport(0, 0, cScreenWidth, cScreenHeight);
  1121 
  1108