We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1136 - TestiPhoneOS.xcodeproj runtime errors with out of date signature
Summary: TestiPhoneOS.xcodeproj runtime errors with out of date signature
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.6
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-20 11:44 UTC by Trent M
Modified: 2011-02-20 14:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trent M 2011-02-20 11:44:26 UTC
my configuration: XCode 3.2.5 compiling as iOS 4.2SDK & Simulator

I build & debug -target 'testgles'


testgles.c:line180 -> SDL_GetCurrentDisplayMod(&mode) fails... now expects int displayIndex.

even when putting in an arbitrary value such as 0 or 1 I get SD_LoadFunction exceptions:

Pending breakpoint 3 - ""testgles.c":180" resolved
Screen bpp: 32

Vendor     : Apple Computer, Inc.
Renderer   : Apple Software Renderer
Version    : OpenGL ES 2.0 APPLE
Extensions : GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_OES_depth24 GL_OES_depth_texture GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object 

Failed to get SDL_GL_RED_SIZE: Failed loading glGetIntegerv: SDL_LoadFunction() not implemented
Moved PC to SDL_video.c:2107 0x0008942b.
Current language:  auto; currently objective-c
Current language:  auto; currently c
(gdb) continue
Failed to get SDL_GL_GREEN_SIZE: Failed loading glGetIntegerv: SDL_LoadFunction() not implemented
Failed to get SDL_GL_BLUE_SIZE: Failed loading glGetIntegerv: SDL_LoadFunction() not implemented
Failed to get SDL_GL_DEPTH_SIZE: Failed loading glGetIntegerv: SDL_LoadFunction() not implemented
Program received signal:  “EXC_BAD_ACCESS”.
kill
kill
(gdb)
Comment 1 Sam Lantinga 2011-02-20 14:16:47 UTC
This is fixed, thanks!
http://hg.libsdl.org/SDL/rev/96799a165806