Earlier iphone versions dont support opengles2

Hello all,

I ran into an error when using SDL2.0 (latest hg) on iOS, specifically on
iPhone3GS with 4.2.1 version.

The fact is that this device does not support OGL_ES2, which is causing the
CreateRenderer function with no specific renderer to try to create a
opengles2 context, creating duplicate touch drivers, etc.

This can be easily fixed checking for the armv6 macro on
SDL_config_iphoneos.h, something like:

/* enable OpenGL ES */
#define SDL_VIDEO_OPENGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES 1
#ifdef _ARM_ARCH_6 //earlier iPhone versions do not support opengles2.0
#define SDL_VIDEO_RENDER_OGL_ES2 1
#endif

From http://pt.wikipedia.org/wiki/IPhone, one can see that iPhone and
iPhone3G are the only armv6 devices of the iOS family, which also do not
support OGL_ES2.
Thoughts?

Best------
Jos? Pereira

I ran into an error when using SDL2.0 (latest hg) on iOS, specifically
on iPhone3GS with 4.2.1 version.

This should support ES2. Did you mean a “3G” (not 3GS)?

Thoughts?

Some patch like this should go into revision control. Is it still
possible to develop for the 3G? I’m not sure how aggressive Apple is
about pushing developers to new hardware.

–ryan.

I ran into an error when using SDL2.0 (latest hg) on iOS, specifically

on iPhone3GS with 4.2.1 version.

This should support ES2. Did you mean a “3G” (not 3GS)?

I meant an iPhone 3G! Right!

Thoughts?

Some patch like this should go into revision control. Is it still possible
to develop for the 3G? I’m not sure how aggressive Apple is about pushing
developers to new hardware.

I am developing an enterprise software with latest Xcode and 5.1 iOS SDK. I
ran into this problem after finding out that the new Xcode 4 is only
building binaries for armv7 by default. After doing the appropriate changes
to compile also for armv6, i noticed the aforementioned error.
So, i would say that earlier armv6 devices are still stupported, as the 5.1
SDK is ABI compatible for the time sake.

–ryan.

Best
JoseOn Thu, Aug 16, 2012 at 1:10 AM, Ryan C. Gordon wrote:

_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

The intent is that it’s supposed to try to create an OpenGL ES 2 context
first, and then when that fails, fall back to OpenGL ES context. This
worked at one point, so if it’s broken because of other systems, please dig
into it and submit a bug (and if possible a patch)

http://bugzilla.libsdl.org/

Thanks!On Wed, Aug 15, 2012 at 7:22 AM, Jos? Luis Pereira wrote:

Hello all,

I ran into an error when using SDL2.0 (latest hg) on iOS, specifically on
iPhone3GS with 4.2.1 version.

The fact is that this device does not support OGL_ES2, which is causing
the CreateRenderer function with no specific renderer to try to create a
opengles2 context, creating duplicate touch drivers, etc.

This can be easily fixed checking for the armv6 macro on
SDL_config_iphoneos.h, something like:

/* enable OpenGL ES */
#define SDL_VIDEO_OPENGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES 1
#ifdef _ARM_ARCH_6 //earlier iPhone versions do not support opengles2.0
#define SDL_VIDEO_RENDER_OGL_ES2 1
#endif

From http://pt.wikipedia.org/wiki/IPhone, one can see that iPhone and
iPhone3G are the only armv6 devices of the iOS family, which also do not
support OGL_ES2.
Thoughts?

Best

Jos? Pereira


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Some patch like this should go into revision control. Is it still
possible to develop for the 3G? I’m not sure how aggressive Apple is
about pushing developers to new hardware.

Currently, you can develop for any iOS device. Even the first generation iPhone.
What they do is to make it harder, change the documentation examples and default Xcode configurations to make it incompatible with older devices.

[]s
Rodrigo

I read it may be going away in the next release of Xcode:

http://news.softpedia.com/news/Apple-Erasing-iPhone-3G-Support-from-SDKs-285866.shtml

-EricOn 8/15/12, Ryan C. Gordon wrote:

I ran into an error when using SDL2.0 (latest hg) on iOS, specifically
on iPhone3GS with 4.2.1 version.

This should support ES2. Did you mean a “3G” (not 3GS)?

Thoughts?

Some patch like this should go into revision control. Is it still
possible to develop for the 3G? I’m not sure how aggressive Apple is
about pushing developers to new hardware.


Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/