mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
proposed fix from ETC for max 2012 compilation issue
This commit is contained in:
parent
f62a4c37cb
commit
d7c2cd218d
@ -806,7 +806,13 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||||||
|
|
||||||
if (!controlsInit) {
|
if (!controlsInit) {
|
||||||
controlsInit = TRUE;
|
controlsInit = TRUE;
|
||||||
|
|
||||||
|
#ifdef MAX_VERSION_MAJOR < 14
|
||||||
|
// It appears that InitCustomControls is deprecated in 2012.
|
||||||
|
// I'm not sure if we can just remove it like this, but
|
||||||
|
// I've heard that it seems to work, so let's do it like this.
|
||||||
InitCustomControls(hInstance); // Initialize MAX's custom controls
|
InitCustomControls(hInstance); // Initialize MAX's custom controls
|
||||||
|
#endif
|
||||||
InitCommonControls(); // Initialize Win95 controls
|
InitCommonControls(); // Initialize Win95 controls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user