VirtualBox

Changeset 23437 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Sep 30, 2009 12:33:25 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix world of warcraft crash on second login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c

    r23433 r23437  
    274274    CRContext *g = GetCurrentContext();
    275275
    276     CRASSERT(!crStateGetProgramObj(id));
     276    pProgram = crStateGetProgramObj(id);
     277    if (!pProgram)
     278    {
     279        crWarning("Program object %d already exists!", id);
     280        crStateDeleteProgram(id);
     281        CRASSERT(!crStateGetProgramObj(id));
     282    }
    277283
    278284    pProgram = (CRGLSLProgram *) crAlloc(sizeof(*pProgram));
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