mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
I shouldn't forget that green is a colour, too
This commit is contained in:
parent
bc24576b02
commit
ba25fc540b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user