Browse Source

A minor fix

Josh Yelon 18 years ago
parent
commit
c6ed2145ee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/grutil/movieTexture.cxx

+ 2 - 2
panda/src/grutil/movieTexture.cxx

@@ -348,19 +348,19 @@ cull_callback(CullTraverser *, const CullTraverserData &) const {
       double offset = delta;
       if (offset > color->next_start()) {
         color->seek_ahead(offset);
+	color->fetch_into_texture((MovieTexture*)this, i);
       } else if (offset < color->last_start()) {
         color = color->get_source()->get_video(offset);
       }
-      color->fetch_into_texture((MovieTexture*)this, i);
     }
     if (alpha) {
       double offset = delta;
       if (offset > alpha->next_start()) {
         alpha->seek_ahead(offset);
+	alpha->fetch_into_texture_alpha((MovieTexture*)this, i, _alpha_file_channel);
       } else if (offset < alpha->last_start()) {
         alpha = alpha->get_source()->get_video(offset);
       }
-      alpha->fetch_into_texture_alpha((MovieTexture*)this, i, _alpha_file_channel);
     }
   }
   return true;