VirtualBox

Changeset 35271 in vbox for trunk/src


Ignore:
Timestamp:
Dec 21, 2010 11:23:17 AM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: fix Unity/Compiz crashes on natty

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getstring.c

    r32241 r35271  
    7676    ext = crStateMergeExtensions(1, &extensions);
    7777
     78#ifdef Linux
     79    /*@todo
     80     *That's a hack to allow running Unity, it uses libnux which is calling extension functions
     81     *without checking if it's being supported/exported.
     82     *glActiveStencilFaceEXT seems to be actually supported but the extension string isn't exported (for ex. on ATI HD4870),
     83     *which leads to libglew setting function pointer to NULL and crashing Unity.
     84     */
     85    sprintf((char*)gpszExtensions, "%s GL_EXT_stencil_two_side", ext);
     86#else
    7887    sprintf((char*)gpszExtensions, "%s", ext);
     88#endif
    7989
    8090    return gpszExtensions;
  • trunk/src/VBox/GuestHost/OpenGL/glapi_parser/APIspec.txt

    r33988 r35271  
    67046704param       face        GLenum
    67056705paramprop   face        GL_FRONT GL_BACK
    6706 category    EXT_stencil_two_side
    6707 chromium    omit
     6706category    GL_EXT_stencil_two_side
     6707chromium    extpack
    67086708
    67096709
     
    1032910329chromium    extpack
    1033010330
     10331# GL_EXT_blend_equation_separate
     10332name        BlendEquationSeparateEXT
     10333alias       BlendEquationSeparate
     10334return      void
     10335param       modeRGB        GLenum
     10336paramprop   modeRGB        GL_FUNC_ADD GL_FUNC_SUBTRACT GL_FUNC_REVERSE_SUBTRACT GL_MIN GL_MAX GL_LOGIC_OP
     10337param       modeAlpha      GLenum
     10338paramprop   modeAlpha      GL_FUNC_ADD GL_FUNC_SUBTRACT GL_FUNC_REVERSE_SUBTRACT GL_MIN GL_MAX GL_LOGIC_OP
     10339category    GL_EXT_blend_equation_separate
     10340chromium    nopack
     10341
    1033110342# end of file sentinel
    1033210343
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_extstring.h

    r33093 r35271  
    217217    "GL_EXT_framebuffer_blit "
    218218#endif
     219#ifdef CR_EXT_blend_equation_separate
     220    "GL_EXT_blend_equation_separate "
     221#endif
     222#ifdef CR_EXT_stencil_two_side
     223    "GL_EXT_stencil_two_side "
     224#endif
    219225        "";
    220226
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_protocol.h

    r33093 r35271  
    1616/*For now guest is allowed to connect host opengl service if protocol version matches exactly*/
    1717/*Note: that after any change to this file, or glapi_parser\apispec.txt version should be changed*/
    18 #define CR_PROTOCOL_VERSION_MAJOR 8
     18#define CR_PROTOCOL_VERSION_MAJOR 9
    1919#define CR_PROTOCOL_VERSION_MINOR 1
    2020
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_version.h

    r33540 r35271  
    129129
    130130#define CR_EXT_framebuffer_blit 1
     131#define CR_EXT_blend_equation_separate 1
     132#define CR_EXT_stencil_two_side 1
    131133
    132134#endif /* CR_VERSION_H */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette