SDL Multisampling

I am trying to get the FSAA SDL with multisampling, but it does not want to.

I started with something simple:

SDL_GL_SetAttribute (SDL_GL_MULTISAMPLEBUFFERS, 1); SDL_GL_SetAttribute (SDL_GL_MULTISAMPLESAMPLES, 2);

But I do a related get and returns 0 for buffers and 1 for samples. (both before and after SetVideo).

I tried it both on my GeForce 280M, and that it was a mobile problem, and tried it on my 580 too.

I am running Windows 7 with updated drivers.

If I force FSAA to be enabled in the NVidia control panel, it works fine, but I cannot force the application to enable it.

Any ideas?

+5
source share
1 answer

0 -1. 1., , . - ?

, . , , . SDL_GL_GetAttribute ( SDL_SetVideoMode, , ).

. . SDL_SetVideoMode, :

SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES,16);

, .

+1

All Articles