Changeset 39507 in vbox for trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu_init.c
- Timestamp:
- Dec 2, 2011 7:44:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu_init.c
r16074 r39507 85 85 return 1; 86 86 } 87 88 #ifdef RT_OS_WINDOWS 89 #define WIN32_LEAN_AND_MEAN 90 #include <windows.h> 91 BOOL 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.