You do get a red square, it’s just very little red each byte has a value between 0-255 so the example above should give you a very red square, 0x80 (128) a dull red square and so on.
I don’t know what was wrong but I retyped the whole code and now it works thanx. Do these functions ex: glDrawPixels glCopy Pixels… only work in ortho view?