I notice you are trying to use a GL_LUMINANCE texture. However, according to the documentation, only a few GL_RGB formats are defined in the standard. Mapping from other formats are probably driver...