From 35bcb0c6cd30c4a42eaf9a55ecbb568646772486 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 17 Sep 2008 19:47:50 +0000 Subject: [PATCH] Allow aux buffers for MRT (multiple-render-targets). --- panda/src/dxgsg9/wdxGraphicsPipe9.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/panda/src/dxgsg9/wdxGraphicsPipe9.cxx b/panda/src/dxgsg9/wdxGraphicsPipe9.cxx index 6c63b5e6cc..8ba6bc761c 100755 --- a/panda/src/dxgsg9/wdxGraphicsPipe9.cxx +++ b/panda/src/dxgsg9/wdxGraphicsPipe9.cxx @@ -138,16 +138,14 @@ make_output(const string &name, // Early failure - if we are sure that this buffer WONT // meet specs, we can bail out early. 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_accum_bits() > 0)|| (fb_prop.get_multisamples() > 0)) { return NULL; } } + // Early success - if we are sure that this buffer WILL // meet specs, we can precertify it. // This looks rather overly optimistic -- ie, buggy.