Small batch of fixes

-=-=-=-=-=-=-=-=-=-=
-Fixed looping error in AudioStreamResampled
-winrt port progress
-fixes in material in ambient light
This commit is contained in:
Juan Linietsky 2014-12-15 15:42:58 -03:00
parent be4e40e90a
commit 089d7fa171
21 changed files with 348 additions and 46 deletions

View file

@ -136,7 +136,10 @@ public:
static int b;
#if defined(_MSC_VER) && _MSC_VER < 1800
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0603 // windows 8?
b = (int)((a>0.0f) ? (a + 0.5f):(a -0.5f));
#elif defined(_MSC_VER) && _MSC_VER < 1800
__asm fld a
__asm fistp b
/*#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
@ -147,6 +150,7 @@ public:
"fistpl %0 \n\t"
: "=m" (b)
: "m" (a));*/
#else
b=lrintf(a); //assuming everything but msvc 2012 or earlier has lrint
#endif