loader: Remove windows disable of global optimization.
authorJon Ashburn <jon@lunarg.com>
Tue, 15 Sep 2015 19:37:52 +0000 (13:37 -0600)
committerJon Ashburn <jon@lunarg.com>
Thu, 17 Sep 2015 21:29:28 +0000 (15:29 -0600)
Now that vktrace now longer uses mhook, can reenable global optimize on Windows.

loader/trampoline.c

index 0d13e66095448b77f0b70153bfe3c5092c37cbb1..7ebdfe447eb95bfcd0bf51eb3da63f6ea6810906 100644 (file)
 #include "debug_report.h"
 #include "wsi_swapchain.h"
 
-#if defined(WIN32)
-// On Windows need to disable global optimization for function entrypoints or
-//  else mhook will not be able to hook all of them
-#pragma optimize( "g", off )
-#endif
 
 /* Trampoline entrypoints */
 LOADER_EXPORT VkResult VKAPI vkCreateInstance(