Răsfoiți Sursa

NPOT RT on Android too

dmuratshin 9 ani în urmă
părinte
comite
a85b05e7d6

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

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

+ 1 - 1
oxygine/src/oxygine_include.h

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