VirtualBox

Changeset 45577 in vbox


Ignore:
Timestamp:
Apr 16, 2013 5:33:59 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: fix window mgmt

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h

    r45348 r45577  
    522522    GLboolean             bUseMultipleContexts;
    523523
     524    GLboolean             bWindowsInitiallyHidden;
     525
    524526    /* @todo: should we use just one blitter?
    525527     * we use two currently because the drawable attribs can differ*/
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_config.c

    r45348 r45577  
    5757    cr_server.bUsePBOForReadback = GL_FALSE;
    5858    cr_server.bUseOutputRedirect = GL_FALSE;
     59    cr_server.bWindowsInitiallyHidden = GL_FALSE;
    5960}
    6061
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c

    r45507 r45577  
    239239        cr_server.currentEye = value ? 1 : 0;
    240240        break;
     241    case GL_HOST_WND_CREATED_HIDDEN:
     242        cr_server.bWindowsInitiallyHidden = value ? 1 : 0;
     243        break;
    241244    default:
    242245        /* Pass the parameter info to the head SPU */
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

    r45527 r45577  
    7979    mural->height = dims[1];
    8080   
    81     cr_server.head_spu->dispatch_table.GetChromiumParametervCR(GL_WINDOW_VISIBILITY_CR, spuWindow, GL_INT, 1, dims);
    82 
    8381    mural->spuWindow = spuWindow;
    8482    mural->screenId = 0;
    8583    mural->fHasParentWindow = !!cr_server.screen[0].winID;
    86     mural->bVisible = !!dims[0];
     84    mural->bVisible = cr_server.bWindowsInitiallyHidden;
    8785    mural->fPresentMode = CR_SERVER_REDIR_F_NONE;
    8886
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r45507 r45577  
    467467    crHashtableAdd(render_spu.windowTable, id, window);
    468468
    469     if (render_spu.force_hidden_wdn_create
    470             || ((render_spu.render_to_app_window || render_spu.render_to_crut_window) && !crGetenv("CRNEWSERVER")))
    471         showIt = 0;
    472     else
    473         showIt = (id != CR_RENDER_DEFAULT_WINDOW_ID);
     469    showIt = 0;
    474470
    475471    /*
     
    12331229    switch (target)
    12341230    {
    1235         case GL_HOST_WND_CREATED_HIDDEN:
    1236             render_spu.force_hidden_wdn_create = value ? GL_TRUE : GL_FALSE;
    1237             break;
    12381231        default:
    12391232//            crWarning("Unhandled target in renderspuChromiumParameteriCR()");
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h

    r45132 r45577  
    317317# endif
    318318#endif /* RT_OS_DARWIN */
    319 
    320     int force_hidden_wdn_create;
    321319} RenderSPU;
    322320
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