mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
fix red-green confusion
This commit is contained in:
parent
ce4de5f2af
commit
656b85eb8c
@ -144,8 +144,8 @@ create_cg_image(const PNMImage &pnm_image) {
|
||||
if (is_grayscale) {
|
||||
*dp++ = (xelval)(pnm_image.get_gray(xi, yi) * PGM_MAXMAXVAL);
|
||||
} else {
|
||||
*dp++ = (xelval)(pnm_image.get_green(xi, yi) * PGM_MAXMAXVAL);
|
||||
*dp++ = (xelval)(pnm_image.get_red(xi, yi) * PGM_MAXMAXVAL);
|
||||
*dp++ = (xelval)(pnm_image.get_green(xi, yi) * PGM_MAXMAXVAL);
|
||||
*dp++ = (xelval)(pnm_image.get_blue(xi, yi) * PGM_MAXMAXVAL);
|
||||
}
|
||||
if (has_alpha) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user