Browse Source

Allow aux buffers for MRT (multiple-render-targets).

aignacio_sf 17 years ago
parent
commit
35bcb0c6cd
1 changed files with 2 additions and 4 deletions
  1. 2 4
      panda/src/dxgsg9/wdxGraphicsPipe9.cxx

+ 2 - 4
panda/src/dxgsg9/wdxGraphicsPipe9.cxx

@@ -138,16 +138,14 @@ make_output(const string &name,
     // Early failure - if we are sure that this buffer WONT
     // Early failure - if we are sure that this buffer WONT
     // meet specs, we can bail out early.
     // meet specs, we can bail out early.
     if ((flags & BF_fb_props_optional) == 0) {
     if ((flags & BF_fb_props_optional) == 0) {
-      if ((fb_prop.get_aux_rgba() > 0)||
-          (fb_prop.get_aux_rgba() > 0)||
-          (fb_prop.get_aux_float() > 0)||
-          (fb_prop.get_indexed_color() > 0)||
+      if ((fb_prop.get_indexed_color() > 0)||
           (fb_prop.get_back_buffers() > 0)||
           (fb_prop.get_back_buffers() > 0)||
           (fb_prop.get_accum_bits() > 0)||
           (fb_prop.get_accum_bits() > 0)||
           (fb_prop.get_multisamples() > 0)) {
           (fb_prop.get_multisamples() > 0)) {
         return NULL;
         return NULL;
       }
       }
     }
     }
+
     // Early success - if we are sure that this buffer WILL
     // Early success - if we are sure that this buffer WILL
     // meet specs, we can precertify it.
     // meet specs, we can precertify it.
     // This looks rather overly optimistic -- ie, buggy.
     // This looks rather overly optimistic -- ie, buggy.