Changeset 39507 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 2, 2011 7:44:16 AM (13 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 3 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 -
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu_init.c
r19099 r39507 29 29 unsigned int num_contexts ) 30 30 { 31 CRContext *ctx;32 31 (void) context_id; 33 32 (void) num_contexts; … … 86 85 return 1; 87 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 -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
r38374 r39507 585 585 { 586 586 packspu_VBoxPackAttachThread(); 587 crStateOnThreadAttachDetach(GL_TRUE); 587 588 break; 588 589 } … … 591 592 { 592 593 packspu_VBoxPackDetachThread(); 594 crStateOnThreadAttachDetach(GL_FALSE); 593 595 break; 594 596 }
Note:
See TracChangeset
for help on using the changeset viewer.