Crash on Beagle with OVG + GLES 2.0

Hi All,

I am trying to use OpenGL ES 2.0 with OpenVG 1.1 on Beagle board (OMAP35x Linux Graphics SDK: 3_00_00_09). Once I run the application, it crashes after rendering few frames. Here is the sequence that I am using in my application:

0- Initialize EGL and choose a configuration with EGL_RENDERABLE_BIT set to 0x110 (OVG + GLES 2.0)
1- Create EGL Surface
2- Bind OpenGL ES 2.0 API to EGL using eglBindAPI()
3- Create OpenGL ES 2.0 context
4- Bind OpenVG API with EGL
5- Create OpenVG context
6- Make OpenGL ES context as current
7- Render OGL stuff
8- Make OpenVG context as current
9- Render OVG stuff
10- vgFinish()
11- eglSwapBuffers()

Is there any problem with the above sequence or may be it is something to do with the SDK or the driver as it is getting into trouble when both OpenGL ES 2.0 and OpenVG are used. Any thoughts from any one, especially someone from “Imagination Inc.” or Texas Instruments". Thanks.

Regards,
Javed