Skip to main content
gamedev.net
🔒 Locked

Displaying pixels

Started by bigwiger 3 replies 600+ views
Original Post
bigwiger
bigwiger
I'm trying to display bitmaps to the screen, unfortunately when I do it using glDrawPixels(), sometimes it works, and sometimes it completely crashes my computer. Even without changing any of the code, sometimes it will display to the screen, and other times it crashes. I was wondering what the problem might be. Coule it be that I'm displaying 24 bit information to a 16 bit screen?
Disgruntled designers are always the best ones
ff8
ff8
what do you mean from
Quote:

it completely crashes my computer

do you mean you computer hangs or the image look bad ?
bigwiger
bigwiger
As in, my computer crashes. It freezes. Makes a beeping noise when I move the mouse.
Disgruntled designers are always the best ones
bigwiger
bigwiger
I just found out for myself that it was because I was displaying 24-bits on a 16-bit screen.
Disgruntled designers are always the best ones
ff8
ff8
ah ok that's great

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.