VirtualBox

Ignore:
Timestamp:
Dec 2, 2011 7:44:16 AM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: fix destroyed context refference in TLS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu_init.c

    r16074 r39507  
    8585    return 1;
    8686}
     87
     88#ifdef RT_OS_WINDOWS
     89#define WIN32_LEAN_AND_MEAN
     90#include <windows.h>
     91BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
     92{
     93    (void) lpvReserved;
     94
     95    switch (fdwReason)
     96    {
     97        case DLL_THREAD_ATTACH:
     98        {
     99            crStateOnThreadAttachDetach(GL_TRUE);
     100            break;
     101        }
     102
     103        case DLL_THREAD_DETACH:
     104        {
     105            crStateOnThreadAttachDetach(GL_FALSE);
     106            break;
     107        }
     108
     109        case DLL_PROCESS_ATTACH:
     110        case DLL_PROCESS_DETACH:
     111        default:
     112            break;
     113    }
     114
     115    return TRUE;
     116}
     117#endif
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