I'm trying to write a *very* simply GLUT program for OSX which just shows an image in a window. (It does a bit more than that, but that's the essentials.)
Naturally I'd rather not constraint the image to power-of-two size, or resample it myself, so I'm trying to use GL_ARB_texture_rectangle as my target.
The code:
Clearly the extension is supported, so what's the problem? I did call glewInit() previously.....glBindTexture reports error GL_INVALID_ENUM.
This is on OSX using XCode, incidentally.
Unrelated question----is GLUT on OSX known to be broken? Because my windows keep having garbage from elsewhere on the screen showing up in them.



