Weird OpenGL Issues (Mach-O)

I'm developing a program with REALbasic 5.5.4 which requires the use of OpenGL, and must be cross-platform. Everything works, drawing, coloring, blending, etc, except for texturing... All my textures appear as white. They show up in the profiler, and everything. They just arn't being drawn.

At first I thought it was a bug in my texturing code. Nope. Its about 10 lines and I must have checked it at least 20 times. Then I thought it might be a problem in the way the context is setup. Bingo.

But its not how I create the context, its what library I use. I was originally compiling my program for Mach-O and Win32, and just out of curiosity made it compile for PEF instead. Wow. Suddenly it works. Its rather strange...

Here is the code I'm using to setup the context. As you can see, there is no difference in how I'm actually doing it, just which library I use...

As I said, both PEF and Mach-O versions compile and run, and both display geometry, but the Mach-O version doesn't draw the texture... It shows up in Apple's OpenGL Profiler fine (its not corrupted or anything), so the texture is actually being bound and such, just not being drawn...

I know people might be wondering why I want to use Mach-O, since PEF still works with MacOS X... I have to use other Mach-O only technologies such as CoreAudio, so I need the project to be Mach-O. (And it also happens to be the native executable format for MacOS X)

If you read the GL spec, the default minification filter is GL_NEAREST_MIPMAP_LINEAR, so using glTexImage2d for only the top mipmap level results in an incomplete texture; getting white objects is the correct behavior. If you don't use mipmaps you must set the minification filter.

10.2 and earlier had the wrong default filter and let you get away with not setting it. Presumably PEF apps under 10.3 keep that behavior.