Use std::min/max instead of the Windows macros.

TRAC #11024

* Define NOMINMAX so that the Windows headers don't define min or max.
* Use std::min/std::max where we were using the min/max macros.

Signed-off-by: Daniel Koch

Author:    Andrew Lewycky <andrew.lewycky@transgaming.com>

git-svn-id: https://angleproject.googlecode.com/svn/trunk@10 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/libGLESv2/Texture.cpp b/libGLESv2/Texture.cpp
index 118d5f2..d857967 100644
--- a/libGLESv2/Texture.cpp
+++ b/libGLESv2/Texture.cpp
@@ -10,6 +10,8 @@
 
 #include "Texture.h"
 
+#include <algorithm>
+
 #include "main.h"
 #include "mathutil.h"
 #include "debug.h"
@@ -347,7 +349,7 @@
 
     if (mipmapping)
     {
-        int q = log2(max(mWidth, mHeight));
+        int q = log2(std::max(mWidth, mHeight));
 
         for (int level = 1; level <= q; level++)
         {