MacOS X FSAA revisited

(Yes, this is MacSDL week for me…)

Okay, I looked into this.

The FSAA code in CVS does work on OSX, but it’s #ifdef’d out, because
it reportedly doesn’t seem to compile on 10.1, as stated here:
http://www.libsdl.org/pipermail/sdl/2003-December/058335.html

This page says 10.1 was the first OS version to support the extension:
http://developer.apple.com/opengl/extensions.html#GL_ARB_multisample

So it’s possible that the support is there but the system headers are
borked. Thankfully, this technote tells us how to conditionally compile
code based on OS version:

http://developer.apple.com/qa/qa2001/qa1316.html

Now in CVS, I have it #define the multisample symbols to what they
should be on Jaguar/Panther if building on anything less than 10.2.0, so
a compiled binary will get the same effect regardless of what system it
builds on (although you may or may not actually get a multisample
context at runtime on 10.1).

Testing from others, on OSX 10.1 or otherwise, is welcome.

–ryan.

The FSAA code in CVS does work on OSX, but it’s #ifdef’d out, because
it reportedly doesn’t seem to compile on 10.1, as stated here:
http://www.libsdl.org/pipermail/sdl/2003-December/058335.html

Your patch compiles fine for me on MacOS 10.1 It fails to create an
OpenGL context if I request FSAA on my iBook with a Rage 128, but I
expected that.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

ok,

…i know this is from a while ago, but I’m just now getting around to
trying it out again…

The FSAA code in CVS does work on OSX, but it’s #ifdef’d out, because
it reportedly doesn’t seem to compile on 10.1, as stated here:

…snip…

Testing from others, on OSX 10.1 or otherwise, is welcome.

…well, I’m now using 10.3.3 with one of those spiffy new powerbook’s
with 128 MB VRAM, so I thought I’d update freespace1&2 to use FSAA…it
works, but no matter what multisamplesamples I request (ie. 4 or 8), I
always get 2; this is at a resolution of 640x480, so I assume I have
enough VRAM to cover this:

SDL_GL_RED_SIZE: requested 5, got 8
SDL_GL_GREEN_SIZE: requested 5, got 8
SDL_GL_BLUE_SIZE: requested 5, got 8
SDL_GL_DEPTH_SIZE: requested 15, got 16
SDL_GL_DOUBLEBUFFER: requested 1, got 1
SDL_GL_MULTISAMPLEBUFFERS: requested 1, got 1
SDL_GL_MULTISAMPLESAMPLES: requested 8, got 2

…any ideas on what the hold up would be?

jamieOn Feb 26, 2004, at 4:00 AM, Ryan C. Gordon wrote: