I have the following situation: I have 8 bit (GL_UNSIGNED_BYTE) pixel data. The value of the pixel represents a color index. Actually there are only 4 distinct colors. The pixel data should now be used as texture. I've tried without any success to get the texture correctly working. It seems that my color map are not interpreted correctly. Here is my code: