dmuratshin 9 éve
szülő
commit
df10296a6c
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      oxygine/src/PostProcess.cpp

+ 3 - 0
oxygine/src/PostProcess.cpp

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