Browse Source

make_texture_buffer should request color and alpha bits by default (alpha bits for backward compatibility)

rdb 12 years ago
parent
commit
e3301b8896
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/display/graphicsOutput.cxx

+ 2 - 0
panda/src/display/graphicsOutput.cxx

@@ -954,6 +954,8 @@ make_texture_buffer(const string &name, int x_size, int y_size,
 
   FrameBufferProperties props;
   props.set_rgb_color(1);
+  props.set_color_bits(1);
+  props.set_alpha_bits(1);
   props.set_depth_bits(1);
 
   if (fbp == NULL) {