[AD] [ alleg-Bugs-3402013 ] Bug in ex_palette.c |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Bugs item #3402013, was opened at 2011-08-31 20:47
Message generated for change (Settings changed) made by elias
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3402013&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Linux
Group: 5.1
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: phelius (projectphelius)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in ex_palette.c
Initial Comment:
Change line in pixel shader:
146: int index = int(c.r * 255);
to
146: int index = int(c.r * 255.0);
Otherwise the shader silently fails and generates an error visible in allegro.log:
Compile error: 0:8(27): error: Could not implicitly convert operands to arithmetic operator
0:8(14): error: cannot construct `int' from a non-numeric data type
----------------------------------------------------------------------
Comment By: Elias Pschernig (elias)
Date: 2012-01-15 06:33
Message:
Thanks, should be fixed as of revision 15186.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3402013&group_id=5665