[Mesa-dev] [PATCH] swrast: fix assorted bugs in software blit code
Kenneth Graunke
kenneth at whitecape.org
Thu Jan 17 08:26:45 PST 2013
On 01/17/2013 08:07 AM, Brian Paul wrote:
> 1. The loop over dest buffers in blit_linear() needed a null pointer
> check. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=59499
>
> 2. The code to grab the drawRb's format needs to be inside the drawing loop.
>
> 3. An equality test was using = instead of == thus messing up a
> renderbuffer attachment texture pointer. This lead to memory
> corruption and a crash at exit.
>
> Finally, fix a capitalization error NumDrawBuffers -> numDrawBuffers
> and change type to unsigned to fix signed/unsigned comparison warnings.
> ---
> src/mesa/swrast/s_blit.c | 30 ++++++++++++++++++++----------
> 1 files changed, 20 insertions(+), 10 deletions(-)
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list