Browse Source

NPOT RT on Android too

dmuratshin 9 years ago
parent
commit
a85b05e7d6
2 changed files with 8 additions and 1 deletions
  1. 7 0
      oxygine/src/core/gl/ShaderProgramGL.cpp
  2. 1 1
      oxygine/src/oxygine_include.h

+ 7 - 0
oxygine/src/core/gl/ShaderProgramGL.cpp

@@ -114,6 +114,13 @@ namespace oxygine
         }
         }
 #endif
 #endif
 
 
+#ifdef __ANDROID__
+        *ptr = "#define ANDROID 1\n";
+        ptr++;
+#endif
+
+
+
 
 
         if (prepend)
         if (prepend)
         {
         {

+ 1 - 1
oxygine/src/oxygine_include.h

@@ -25,7 +25,7 @@
 
 
 
 
 #ifdef __ANDROID__
 #ifdef __ANDROID__
-#define HAVE_NPOT_RT()  (false)
+#define HAVE_NPOT_RT()  (true)
 #else
 #else
 #define HAVE_NPOT_RT()  (true)
 #define HAVE_NPOT_RT()  (true)
 #endif
 #endif