Browse Source

Add "glgsg->update_texture(tc, true);" for new cubemap only case.

aignacio_sf 17 years ago
parent
commit
f508157c52
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/glstuff/glGraphicsBuffer_src.cxx

+ 2 - 0
panda/src/glstuff/glGraphicsBuffer_src.cxx

@@ -313,6 +313,8 @@ rebuild_bitplanes() {
         TextureContext *tc = tex->prepare_now(glgsg->get_prepared_objects(), glgsg);
         nassertv(tc != (TextureContext *)NULL);
         CLP(TextureContext) *gtc = DCAST(CLP(TextureContext), tc);
+        glgsg->update_texture(tc, true);
+
         RenderTexturePlane plane = get_texture_plane(i);
 
         switch (plane)