Link to home
Start Free TrialLog in
Avatar of xargon_123
xargon_123

asked on

glDrawPixels does not draw a bitmap correctly

Hi everyone,

I have a very strange problem. I am using the glDrawPixels in my
application to draw bitmaps to the screen. Nothing special. I have an
Intel graphics card and everythign works fine.

I switch to another machine that has an ATI radeon 9000 card. Now, all
the bitmaps work fine, except one! All of them are 24 bit bitmaps and
they display correctly, except one! I found nothing strange with the
bitmap and I have absolutely no clue, why it should display
differently!

I am attaching the link to the images (the original image and how it
displays on the screen). If anyone has ever come across anything like
this, please help me! I would be eternally grateful!

The original and sisplayed bitmaps are here:

http://superkampfer.blogspot.com/

The top post on my blog shows the images.

Another strange thing I noticed is that it displays correctly when I
slow the 3D acceleration down a bit on the ATI card! I have no idea
what is going on!

If someone could help, I would be greateful. Is there an alternative to
the glDrawPixels function that I could try?

Thanks and cheers,
xargy
ASKER CERTIFIED SOLUTION
Avatar of davebytes
davebytes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NovaDenizen
NovaDenizen

What are the sizes of your bitmaps, and what is the size of the bitmap that is not drawing correctly?
Avatar of xargon_123

ASKER

Actually, I found the problem. The bitmap rows were at a 4 byte boundary and I did not check for that.