Browse Source

Fix cubemap FBO's

rdb 17 năm trước cách đây
mục cha
commit
02b2b9eacc
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      panda/src/glstuff/glGraphicsBuffer_src.cxx

+ 5 - 3
panda/src/glstuff/glGraphicsBuffer_src.cxx

@@ -307,9 +307,11 @@ rebuild_bitplanes() {
       int color_attachment = GL_COLOR_ATTACHMENT0_EXT;
 
       for (int i=0; i<count_textures(); i++) {
-        if (get_rtm_mode(i) != RTM_bind_or_copy) {
-          continue;
-        }
+        // Do we really need the following lines?
+        // Uncommenting them seems to break stuff.
+        //if (get_rtm_mode(i) != RTM_bind_or_copy) {
+        //  continue;
+        //}
 
         Texture *tex = get_texture(i);
         TextureContext *tc = tex->prepare_now(glgsg->get_prepared_objects(), glgsg);