From 274a4216ea2b65d1d086884933adfb08bf8d1a0d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 21 Aug 2014 11:47:53 +0200 Subject: [PATCH] - disabling inlining in the GL loader produces an executable that's 8kb smaller. --- src/gl/system/gl_load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gl/system/gl_load.c b/src/gl/system/gl_load.c index 2b55cb3a9..282395016 100644 --- a/src/gl/system/gl_load.c +++ b/src/gl/system/gl_load.c @@ -53,6 +53,8 @@ static void* SunGetProcAddress (const GLubyte* name) #if defined(_WIN32) #ifdef _MSC_VER +// disable inlining here because it creates an incredible amount of bloat here. +#pragma inline_depth(0) #pragma warning(disable: 4055) #pragma warning(disable: 4054) #endif