VirtualBox

Ignore:
Timestamp:
Nov 22, 2012 4:15:36 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: Blitter: assign Context DpyName from Mural CreateInfo

File:
1 edited

Legend:

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

    r43932 r43942  
    4242
    4343
    44     pBlitter->CtxInfo.CreateInfo.pszDpyName = "";
     44    pBlitter->CtxInfo.CreateInfo.pszDpyName = pCurrentMural->CreateInfo.pszDpyName ? crStrdup(pCurrentMural->CreateInfo.pszDpyName) : NULL;
    4545    pBlitter->CtxInfo.CreateInfo.visualBits = pCurrentMural->CreateInfo.visualBits;
    4646    pBlitter->CtxInfo.SpuContext = cr_server.head_spu->dispatch_table.CreateContext(pBlitter->CtxInfo.CreateInfo.pszDpyName,
     
    6161{
    6262    cr_server.head_spu->dispatch_table.DestroyContext(pBlitter->CtxInfo.SpuContext);
     63    if (pBlitter->CtxInfo.CreateInfo.pszDpyName)
     64        crFree(pBlitter->CtxInfo.CreateInfo.pszDpyName);
    6365}
    6466
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