EAGLView(CGRectMake(0,0,320 * 3,480 * 3)を1024より上に設定しています)のフレームを1024より上に増やすことはできますか?フレームを1024より上に設定すると、iOS 4.2では正しく機能しますが、iOS 4.1デバイスでは、フレームを1024より上に設定すると機能しません。
DO i need to add any extra code for 4.1?
Why the textures are not displaying in IOS 4.1 devices if i set the frame of EAGLView above 1024?
更新:サンプルのopenGLプロジェクトを作成し、didFinishLaunchingWithOptionsを次のコードに置き換えました。シミュレーターでは正常に機能しますが、IOS4.2未満のデバイスでは何も表示されません。
#define VIEWSIZEFACTOR 3 // our EAGLView nees to be multiple of 320X480 to maintain aspect ratio.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
CGRect rect = [[UIScreen mainScreen] bounds];
[self.viewController.view setFrame:CGRectMake(-500, -500, rect.size.width*VIEWSIZEFACTOR, rect.size.height*VIEWSIZEFACTOR)]; //CHANGESIZE
[self.window addSubview:self.viewController.view];
return YES;
}