[AD] [PATCH] al_convert_bitmap in bitmap.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


(patch is attached)

Patch notes:
fixed al_convert_bitmap for case (from pure memory to video bitmap)

As it was, it was causing a problem with ex_loading_thread when using the
default Direct3D driver on conversion of previously loaded memory bitmaps.

Problem description before the fix:
The bitmaps loaded in line 30 in ex_loading_thread
  30  bitmaps[load_count] = al_load_bitmap("data/mysha.pcx");
were never uploaded to texture memory.

This caused the later call in line 166 in ex_loading_thread
 166  al_convert_bitmap(bitmaps[loaded_bitmap]);
to copy the wrong pixel data (from the empty texture of the created
clone instead of from the memory buffer of the source bitmap)
resulting in empty textures and empty memory buffers in the converted
bitmap so the bitmaps never showed up on screen.

Dennis Busch
d_busch@xxxxxxxxxx
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  0001-fixed-al_convert_bitmap-for-case-from-pure-memory-to.patch
     Date:  14 Jul 2012, 13:03
     Size:  2216 bytes.
     Type:  Unknown

Attachment: 0001-fixed-al_convert_bitmap-for-case-from-pure-memory-to.patch
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/