hi,guys,
I have two array that contains pixels that glTexImage2D needed .
As u know , the two are equal in the memory . i pass pixels data to glTexImage2D .
but they produce different results.
i dont'know why .

GLubyte pixels[4 * 4] =
{
255, 0, 0 , 255, // Red
0, 255, 0, 255,// Green
0, 0, 255, 255,// Blue
255, 255, 0 ,255// Yellow
};

// GLuint pixels2[4 ] =
// {
// (255L<<24)+(0<<16)+ (0<<8)+255,
// (0<<24)+(255L<<16)+(0<<8)+255,
// (0<<24)+(0<<16)+ (255L<<8)+255,
// (255L<<24)+(255L<<16)+(0<<8)+255,
// };

glTexImage2D ( GL_TEXTURE_2D, 0, GL_RGBA, 2, 2 , 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels );


thank u in advance. any feedback will be appreciate.