dmuratshin 9 years ago
parent
commit
df10296a6c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      oxygine/src/PostProcess.cpp

+ 3 - 0
oxygine/src/PostProcess.cpp

@@ -150,6 +150,9 @@ namespace oxygine
         if (!t->getHandle())
         if (!t->getHandle())
             return false;
             return false;
 
 
+        w = nextPOT(w);
+        h = nextPOT(h);
+
         if (t->getFormat() == tf &&
         if (t->getFormat() == tf &&
                 t->getWidth() >= w && t->getHeight() >= h &&
                 t->getWidth() >= w && t->getHeight() >= h &&
                 t->getWidth() <= (w + ALIGN_SIZE) && t->getHeight() <= (h + ALIGN_SIZE))
                 t->getWidth() <= (w + ALIGN_SIZE) && t->getHeight() <= (h + ALIGN_SIZE))