Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Visitor
DAllanson
Posts: 1
Registered: ‎05-07-2013
My Carrier: NA

OpenGL ES on Q10

Hi,

 

I have been working on bringing one of our projects to the Blackberry platform. We have it working on Z10(Dev Alpha B) and Playbook but it can’t boot up on our Q10(Dev Alpha C) device.

 

On bootup it fails when we try to create our shared background context using the following standard code. The first context seems to be created fine but it is when it gets to creating the secondary context that it crashes.

 

#ifdef USING_GL20

        egl_ctx = eglCreateContext(egl_disp, egl_conf, EGL_NO_CONTEXT, attributes);

#elif defined(USING_GL11)

        egl_ctx = eglCreateContext(egl_disp, egl_conf, EGL_NO_CONTEXT, NULL);

#endif

 

       if (egl_ctx == EGL_NO_CONTEXT) {

              bbutil_egl_perror("eglCreateContext");

              bbutil_terminate();

              return EXIT_FAILURE;

       }

 

       //Create the shared background context

#ifdef USING_GL20

        egl_Background_ctx = eglCreateContext(egl_disp, egl_conf, egl_ctx, attributes);

#elif defined(USING_GL11)

        egl_Background_ctx = eglCreateContext(egl_disp, egl_conf, egl_ctx, NULL);

#endif

 

       if (egl_Background_ctx == EGL_NO_CONTEXT) {

              bbutil_egl_perror("eglCreateContext");

              bbutil_terminate();

              return EXIT_FAILURE;

       }

 

 

This codebase all works correctly on the other devices we have tested, so I wondered if you had any ideas as to why it might be happening? Could it be something to do with the different graphics chip? Although I imagine the chip should still support shared contexts?

 

OS version: 10.1.0.1485

 

Kind Regards

Dave

Please use plain text.
BlackBerry Development Advisor
psapra
Posts: 73
Registered: ‎07-22-2008
My Carrier: N/A

Re: OpenGL ES on Q10

Hi Dave,

 

I am looking into this issue and will update you once I have more info.  

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra
Please use plain text.