VirtualBox

Ignore:
Timestamp:
Aug 27, 2013 12:30:57 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: proper default shared context support

Location:
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c

    r47566 r48079  
    6363        cr_server.firstCallCreateContext = GL_FALSE;
    6464        fFirst = GL_TRUE;
     65
     66        cr_server.head_spu->dispatch_table.ChromiumParameteriCR(GL_HH_SET_DEFAULT_SHARED_CTX, cr_server.MainContextInfo.SpuContext);
    6567    }
    6668    else {
     
    7173            /* the new context needs new visual attributes */
    7274            cr_server.MainContextInfo.CreateInfo.visualBits |= visualBits;
    73             crDebug("crServerDispatchCreateContext requires new visual (0x%x).",
     75            crWarning("crServerDispatchCreateContext requires new visual (0x%x).",
    7476                    cr_server.MainContextInfo.CreateInfo.visualBits);
    7577
     
    9597                return -1;
    9698            }
     99
     100            /* we do not need to clean up the old default context explicitly, since the above cr_server.head_spu->dispatch_table.DestroyContext call
     101             * will do that for us */
     102            cr_server.head_spu->dispatch_table.ChromiumParameteriCR(GL_HH_SET_DEFAULT_SHARED_CTX, cr_server.MainContextInfo.SpuContext);
    97103        }
    98104    }
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c

    r46783 r48079  
    274274    case GL_HOST_WND_CREATED_HIDDEN_CR:
    275275        cr_server.bWindowsInitiallyHidden = value ? 1 : 0;
     276        break;
     277    case GL_HH_SET_DEFAULT_SHARED_CTX:
     278        crWarning("Recieved GL_HH_SET_DEFAULT_SHARED_CTX from guest, ignoring");
    276279        break;
    277280    default:
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