equal
deleted
inserted
replaced
1124 else if StrPos(Str2PChar(vendor), Str2PChar('ati')) <> nil then |
1124 else if StrPos(Str2PChar(vendor), Str2PChar('ati')) <> nil then |
1125 cGPUVendor:= gvIntel; |
1125 cGPUVendor:= gvIntel; |
1126 |
1126 |
1127 |
1127 |
1128 {$IFNDEF IPHONEOS} |
1128 {$IFNDEF IPHONEOS} |
1129 // since ATI seems to be unable to provide proper texture filtering/quality, |
1129 //SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two'); |
1130 // do not even try to load the extension on ATI cards |
|
1131 |
|
1132 {$IFDEF DARWIN} |
|
1133 if true then |
|
1134 {$ELSE} |
|
1135 if cGPUVendor <> gvATI then |
|
1136 {$ENDIF} |
|
1137 SupportNPOTT:= glLoadExtension('GL_ARB_texture_non_power_of_two') |
|
1138 {$IFDEF DEBUGFILE} |
|
1139 else |
|
1140 AddFileLog('OpenGL: Skipped extension GL_ARB_texture_non_power_of_two due to ATI card') |
|
1141 {$ENDIF} |
|
1142 ; // do not touch this line! :) |
|
1143 {$ENDIF} |
1130 {$ENDIF} |
1144 |
1131 |
1145 // set view port to whole window |
1132 // set view port to whole window |
1146 glViewport(0, 0, cScreenWidth, cScreenHeight); |
1133 glViewport(0, 0, cScreenWidth, cScreenHeight); |
1147 |
1134 |