VirtualBox

Changeset 4088 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Aug 8, 2007 9:12:59 AM (17 years ago)
Author:
vboxsync
Message:

opengl/parallel: proper credits to Alexander Eichner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/gllindrv.cpp

    r4071 r4088  
    55 * Simple buffered OpenGL functions
    66 *
    7  * Contributor: Alexander Eichner
     7 * Contributed by: Alexander Eichner
    88 */
    99
     
    3434 * Neccessary because Mesa and DRI cannot handle more than one
    3535 * connection per thread (only hardware acceleration, software rendering
    36  * runs fine with more than one connection). 
     36 * runs fine with more than one connection).
    3737 * Would crash in vboxglDisconnect if on every vboxglConnect
    3838 * a new Display is created */
     
    110110        GLX_DOUBLEBUFFER,  GL_TRUE,  /* Request a double-buffered color buffer with */
    111111        GLX_RED_SIZE,      1,        /* the maximum number of bits per component    */
    112         GLX_GREEN_SIZE,    1, 
     112        GLX_GREEN_SIZE,    1,
    113113        GLX_BLUE_SIZE,     1,
    114114        None
     
    120120
    121121    /* we have to set up a rendering context to be able to use glGetString
    122      * a window is created but is not mapped to screen (so it's not visible') 
     122     * a window is created but is not mapped to screen (so it's not visible')
    123123     * and a GLXContext is bound to it */
    124124    screen_num = DefaultScreen(pClient->dpy);
     
    151151{
    152152    /* Free all data */
    153     if (pClient->enable.ctx) 
     153    if (pClient->enable.ctx)
    154154    {
    155155        glFlush();
     
    191191        if ((major == 1) && (minor >= 3)) {
    192192            Log(("Server GLX 1.3 supported\n"));
    193             pClient->glxChooseFBConfig = (PFNGLXCHOOSEFBCONFIGSGIXPROC) glXGetProcAddressARB( 
     193            pClient->glxChooseFBConfig = (PFNGLXCHOOSEFBCONFIGSGIXPROC) glXGetProcAddressARB(
    194194                                          (GLubyte *) "glXChooseFBConfig");
    195             pClient->glxGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) glXGetProcAddressARB( 
     195            pClient->glxGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) glXGetProcAddressARB(
    196196                                                 (GLubyte *) "glXGetVisualFromFBConfig");
    197197            pClient->glxCreateNewContext = (PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) glXGetProcAddressARB(
     
    199199        } else if (vboxglCheckExtension(pClient->dpy, screenNum, "GLX_SGIX_fbconfig")) {
    200200            Log(("GLX_SGIX_fbconfig extension supported\n"));
    201             pClient->glxChooseFBConfig = (PFNGLXCHOOSEFBCONFIGSGIXPROC) glXGetProcAddressARB( 
     201            pClient->glxChooseFBConfig = (PFNGLXCHOOSEFBCONFIGSGIXPROC) glXGetProcAddressARB(
    202202                                          (GLubyte *) "glXChooseFBConfigSGIX");
    203             pClient->glxGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) glXGetProcAddressARB( 
     203            pClient->glxGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) glXGetProcAddressARB(
    204204                                                 (GLubyte *) "glXGetVisualFromFBConfigSGIX");
    205205            pClient->glxCreateNewContext = (PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) glXGetProcAddressARB(
     
    271271        attr.event_mask = StructureNotifyMask | ExposureMask;
    272272        mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
    273         pClient->xWindow = XCreateWindow(pClient->dpy, 
    274                                         RootWindow(pClient->dpy, screen_num), 
     273        pClient->xWindow = XCreateWindow(pClient->dpy,
     274                                        RootWindow(pClient->dpy, screen_num),
    275275                                        0, 0, pClient->winWidth, pClient->winHeight, 0,
    276276                                        visinfo->depth, InputOutput,
     
    382382        attr.event_mask = StructureNotifyMask | ExposureMask;
    383383        mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
    384         pClient->xWindow = XCreateWindow(pClient->dpy, 
    385                                         RootWindow(pClient->dpy, screen_num), 
     384        pClient->xWindow = XCreateWindow(pClient->dpy,
     385                                        RootWindow(pClient->dpy, screen_num),
    386386                                        0, 0, pClient->winWidth, pClient->winHeight, 0,
    387387                                        visinfo->depth, InputOutput,
     
    534534        /* First get number of all visuals for the return value */
    535535        screenNum = DefaultScreen(pClient->dpy);
    536         allFBConfigs = glXGetFBConfigs(pClient->dpy, screenNum, 
     536        allFBConfigs = glXGetFBConfigs(pClient->dpy, screenNum,
    537537                                            &pClient->numFBConfigs);
    538538        pClient->PixelFormatToFBConfigMapper = allFBConfigs;
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