Browse Source

fixed buffer properties handling

Josh Yelon 19 years ago
parent
commit
b50bf2d4a0
1 changed files with 8 additions and 2 deletions
  1. 8 2
      panda/src/wgldisplay/wglGraphicsPipe.cxx

+ 8 - 2
panda/src/wgldisplay/wglGraphicsPipe.cxx

@@ -158,7 +158,10 @@ make_output(const string &name,
         ((flags&BF_size_track_host)!=0)||
         ((flags&BF_rtt_cumulative)!=0)||
         ((flags&BF_can_bind_color)!=0)||
-        ((flags&BF_can_bind_every)!=0)) {
+        ((flags&BF_can_bind_every)!=0)||
+        (properties.get_aux_rgba() > 0)||
+        (properties.get_aux_hrgba() > 0)||
+        (properties.get_aux_float() > 0)) {
       return NULL;
     }
     return new wglGraphicsWindow(this, name, properties,
@@ -199,7 +202,10 @@ make_output(const string &name,
         ((flags&BF_require_window)!=0)||
         ((flags&BF_size_track_host)!=0)||
         ((flags&BF_rtt_cumulative)!=0)||
-        ((flags&BF_can_bind_every)!=0)) {
+        ((flags&BF_can_bind_every)!=0)||
+        (properties.get_aux_rgba() > 0)||
+        (properties.get_aux_hrgba() > 0)||
+        (properties.get_aux_float() > 0)) {
       return NULL;
     }
     if ((wglgsg != 0) &&