Browse Source

I shouldn't forget that green is a colour, too

rdb 11 years ago
parent
commit
ba25fc540b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/display/frameBufferProperties.cxx

+ 1 - 0
panda/src/display/frameBufferProperties.cxx

@@ -757,6 +757,7 @@ setup_color_texture(Texture *tex) const {
     for (int i = 0; i < num_formats; ++i) {
       if (get_color_bits() <= (int)formats[i].color_bits &&
           get_red_bits() <= (int)formats[i].red_bits &&
+          get_green_bits() <= (int)formats[i].green_bits &&
           get_blue_bits() <= (int)formats[i].blue_bits &&
           get_alpha_bits() <= (int)formats[i].alpha_bits &&
           get_float_color() <= formats[i].has_float) {