~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Additions/common/crOpenGL/array/arrayspu_init.c

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    
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