[Mesa-dev] [Bug 66886] New: eglChooseConfig returns true even if it fails matching the config

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 13 20:37:20 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=66886

          Priority: medium
            Bug ID: 66886
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: eglChooseConfig returns true even if it fails matching
                    the config
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: fcoulombe at silentfalls.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: EGL
           Product: Mesa

eglconfig.c:727
i think this should return false
http://www.khronos.org/registry/egl/sdk/docs/man/xhtml/eglChooseConfig.html

i was trying to run this function with 
const EGLint pi32ConfigAttribs[] =
    {
        EGL_LEVEL,                0,
        EGL_SURFACE_TYPE,        EGL_WINDOW_BIT,
        EGL_RENDERABLE_TYPE,    EGL_OPENGL_ES2_BIT,
        EGL_NATIVE_RENDERABLE,    EGL_FALSE,
        EGL_DEPTH_SIZE,            EGL_DONT_CARE,
        EGL_NONE
    };
and it would fail matching a config but the function would return true letting
me think that everything went fine.

https://bugs.freedesktop.org/show_bug.cgi?id=50870 <-- might be similar to this 

i changed the data to this
    EGLint pi32ConfigAttribs[5];
    pi32ConfigAttribs[0] = EGL_SURFACE_TYPE;
    pi32ConfigAttribs[1] = EGL_WINDOW_BIT;
    pi32ConfigAttribs[2] = EGL_RENDERABLE_TYPE;
    pi32ConfigAttribs[3] = EGL_OPENGL_ES2_BIT;
    pi32ConfigAttribs[4] = EGL_NONE;
and it worked

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130714/ae966a99/attachment.html>


More information about the mesa-dev mailing list