Qt embedded integration with OpenGL ES problem

Hi, Carlos

We compiled Qt for OpenGL ES, And we modified the Qt source file pvrqwswsegl.c, ‘cause we couldn’t compile successfully without these changes, we couldn’t found any definition about “WSEGL_CAP_WINDOWS_USE_MBX_SYNC” or “WSEGL_CAP_PIXMAPS_USE_MBX_SYNC”.

Original:

/* Capability information for the display */

/*static WSEGLCaps const wseglDisplayCaps[] = {

{WSEGL_CAP_WINDOWS_USE_MBX_SYNC, 1},

{WSEGL_CAP_PIXMAPS_USE_MBX_SYNC, 1},

{WSEGL_NO_CAPS, 0}

};*/

Now:

static WSEGLCaps const wseglDisplayCaps[] = {

{WSEGL_CAP_WINDOWS_USE_HW_SYNC, 1},

{WSEGL_CAP_PIXMAPS_USE_HW_SYNC, 1},

{WSEGL_NO_CAPS, 0}

};

We only found some definitions in “#include <wsegl.h>” like this, so we changed above according below definitions:

typedef enum WSEGLCapsType_TAG

{

WSEGL_NO_CAPS = 0,

WSEGL_CAP_MIN_SWAP_INTERVAL = 1, /* System default value = 1 */

WSEGL_CAP_MAX_SWAP_INTERVAL = 2, /* System default value = 1 */

WSEGL_CAP_WINDOWS_USE_HW_SYNC = 3, /* System default value = 0 (FALSE) */

WSEGL_CAP_PIXMAPS_USE_HW_SYNC = 4, /* System default value = 0 (FALSE) */

} WSEGLCapsType;

The building is ok, when we tested hellogl_es example in Ot, we got some troubles rendering image, with many different color flashing on the widget, and twinkling very fast. Do you think that it’s the problem what we have done to Qt sources?

If yes, how should the really structure be (I mean the “static WSEGLCaps const wseglDisplayCaps[]” what I have mentioned above ) ?

If the original structure arguments are right, why it can’t found the definition of WSEGL_CAP_PIXMAPS_USE_MBX_SYNC and WSEGL_CAP_WINDOWS_USE_MBX_SYNC?

With you special experiences, please give me some advices, and any help is highly appreciated.

Thanks

Best Regards

favor