Hello,

I m trying to use EGL over OpenVG to initialize 1 offscreen surface,
but after initialization, vgGeti() on VG_MAX_IMAGE_WIDTH and HEIGTH
return 0 instead of something like 2048 ...

Did I miss something during my initialization ?

Thank you for your help

Code :
    egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
    if (!eglInitialize(egl_display, &major, &minor)) {
    if (!eglBindAPI(EGL_OPENVG_API)) {
    if (!eglChooseConfig(egl_display, configAttrs, &config, 1, &numConfigs)) {
    egl_context = eglCreateContext(egl_display, config, EGL_NO_CONTEXT, contextAttrs);
 
=> check width and height
    if (width > vgGeti (VG_MAX_IMAGE_WIDTH) ||
	height > vgGeti (VG_MAX_IMAGE_HEIGHT))
    {
	fprintf(stderr, "Surface creation failed, size %dx%d exceeding %dx%d .\n", width, height, vgGeti (VG_MAX_IMAGE_WIDTH), vgGeti (VG_MAX_IMAGE_HEIGHT));
	return -1;
    }
 
    image = vgCreateImage (format, width, height, VG_IMAGE_QUALITY_BETTER);