Sigh, still doesn't work and crashes at renderOneFrame()
Here's excerpts of my log:
**************************************
*** OpenGL ES 2.x Renderer Started ***
**************************************
GLSL ES support detected
Registering ResourceManager for type GpuProgram
GL ES 2: Using FBOs for rendering to textures
FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 Packed-D24S8
FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B5G6R5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8
[GLES2] : Valid FBO targets PF_UNKNOWN PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_X8R8G8B8 PF_X8B8G8R8
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 2.x Rendering Subsystem
Added resource location '/var/mobile/Applications/BE687F46-D639-419E-8189-DC0CB2E15B8A/x.app/media/RTShaderLib' of type 'FileSystem' to resource group 'General'
Added resource location '/var/mobile/Applications/BE687F46-D639-419E-8189-DC0CB2E15B8A/x.app/media/RTShaderLib/materials' of type 'FileSystem' to resource group 'General'
- INFO: GraphicsManager::_initialiseRTShaderSystem()
Initialising resource group General
Parsing scripts for resource group General
Parsing script fader.material
Parsing script RTShaderSystem.material
Parsing script OgreCore.material
Parsing script OgreProfiler.material
*renderOneFrame()*
Program received signal: “EXC_BAD_ACCESS”.
In summary:
- GLES 2.0 is initialised
- I add the resource locations media/RTShaderLib and media/RTShaderLib/materials
- I call initialiseRTShaderSystem() after the scene manager is created and just before initialiseAllResourceGroups() (@goshua Has to be before that because otherwise you get "RTShaderSystem.material(23): token "rtshader_system" is not recognized")
- It parses RTShaderSystem.material ok
- I use CADisplayLink
Here's the stack trace:
#0 0x012e9028 in Ogre::GLSLESLinkProgram::getAttributeIndex at error_code.hpp:229
#1 0x012e962c in Ogre::GLSLESLinkProgram::isAttributeValid at error_code.hpp:229
#2 0x012d20e4 in Ogre::GLES2RenderSystem::_render at error_code.hpp:229
#3 0x00f02644 in Ogre::SceneManager::renderSingleObject at error_code.hpp:229
#4 0x00ef9e14 in Ogre::SceneManager::BRAND NAME::visit at error_code.hpp:229
#5 0x00e793e4 in Ogre::QueuedRenderableCollection::acceptVisitor at error_code.hpp:229
#6 0x00ef9a48 in Ogre::SceneManager::renderObjects at error_code.hpp:229
#7 0x00ef9eec in Ogre::SceneManager::renderBasicQueueGroupObjects at error_code.hpp:229
#8 0x00efc848 in Ogre::SceneManager::renderVisibleObjectsDefaultSequence at error_code.hpp:229
#9 0x00f09f04 in Ogre::SceneManager::_renderScene at error_code.hpp:229
#10 0x00ca1e64 in Ogre::Camera::_renderScene at error_code.hpp:229
#11 0x01061974 in Ogre::Viewport::update at error_code.hpp:229
#12 0x00eab0f8 in Ogre::RenderTarget::_updateViewport at error_code.hpp:229
#13 0x00eabed8 in Ogre::RenderTarget::_updateAutoUpdatedViewports at error_code.hpp:229
#14 0x00eaacac in Ogre::RenderTarget::updateImpl at error_code.hpp:229
#15 0x00eaae5c in Ogre::RenderTarget::update at error_code.hpp:229
#16 0x00e83c74 in Ogre::RenderSystem::_updateAllRenderTargets at error_code.hpp:229
#17 0x00ee65a8 in Ogre::Root::_updateAllRenderTargets at error_code.hpp:229
#18 0x00ee66cc in Ogre::Root::renderOneFrame at error_code.hpp:229
Any ideas what I might be missing?
