1
Ich versuche, Multisampling mit SDL/opengl zu tun, aber SDL akzeptiert SDL_MULTISAMPLEBUFFERS und SDL_MULTISAMPLESAMPLES nicht zu setzen. Stattdessen bleiben diese bei 0 und SDL_SetVideoMode() wird danach fehlschlagen. Ich weiß, dass meine Hardware dieses Pixelformat mit 4x Multisampling ausführen kann. Ich benutze Ubuntu 10.10.SDL/opengl Multisampling funktioniert nicht
Code:
SDL_Init(SDL_INIT_VIDEO);
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0);
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
Uint32 flags;
flags = SDL_OPENGL;
if(m_bFullscreen)
{
flags = flags | SDL_FULLSCREEN;
}
SDL_SetVideoMode(m_sizeX, m_sizeY, 0, flags);
Was ist Ihre Grafikkarte und Treiber? – SurvivalMachine
GF7950GT mit Treiber 260.19.06 auf Linux-x86_64 – gufftan