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/HostServices/SharedOpenGL/crserver/crservice.cpp

    r39288 r39507  
    12451245}
    12461246
     1247#ifdef RT_OS_WINDOWS
     1248#define WIN32_LEAN_AND_MEAN
     1249#include <windows.h>
     1250BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
     1251{
     1252    (void) lpvReserved;
     1253
     1254    switch (fdwReason)
     1255    {
     1256        case DLL_THREAD_ATTACH:
     1257        {
     1258            crStateOnThreadAttachDetach(GL_TRUE);
     1259            break;
     1260        }
     1261
     1262        case DLL_THREAD_DETACH:
     1263        {
     1264            crStateOnThreadAttachDetach(GL_FALSE);
     1265            break;
     1266        }
     1267
     1268        case DLL_PROCESS_ATTACH:
     1269        case DLL_PROCESS_DETACH:
     1270        default:
     1271            break;
     1272    }
     1273
     1274    return TRUE;
     1275}
     1276#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