http://bugs.freedesktop.org/show_bug.cgi?id=26487

           Summary: freeglut segfault because it receives a __GLcontextModes
                    instead of a GLXFBConfig
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: ri...@free.fr


glXChooseFBConfig and friends happyly cast one structure to another, so I
believe they are supposed to be equal. This is not the case here, as gdb shows
it :

type = struct __GLcontextModesRec {
    struct __GLcontextModesRec *next;
    GLboolean rgbMode;
    GLboolean floatMode;
    GLboolean colorIndexMode;
    GLuint doubleBufferMode;
    GLuint stereoMode;
    GLboolean haveAccumBuffer;
    GLboolean haveDepthBuffer;
    GLboolean haveStencilBuffer;
    GLint redBits;
    GLint greenBits;
    GLint blueBits;
    GLint alphaBits;
    GLuint redMask;
    GLuint greenMask;
    GLuint blueMask;
    GLuint alphaMask;
    GLint rgbBits;
...

which comes from GL/internal/glcore.h from MESA, while the other is :

type = struct __GLXFBConfigRec {
    int visualType;
    int transparentType;
    int transparentRed;
    int transparentGreen;
    int transparentBlue;
    int transparentAlpha;
    int transparentIndex;
    int visualCaveat;
    int associatedVisualId;
    int screen;
    int drawableType;
    int renderType;
    int maxPbufferWidth;
    int maxPbufferHeight;
    int maxPbufferPixels;
    int optimalPbufferWidth;
    int optimalPbufferHeight;
    int visualSelectGroup;
    unsigned int id;
...

This later definition comes not from MESA but aparently from
/use/include/GL/glxint.h on my host (which is a gentoo and this file is there
installed by a package named glproto BTW).


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to