dmuratshin 9 gadi atpakaļ
vecāks
revīzija
df10296a6c
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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))