In SDL is er een handige struct waarmee je informatie over de videokaart kunt verkrijgen:
Deze informatie gebruik ik om te bepalen of ik hardware accelerated surfaces kan aanmaken. Zoiets gebruik ik:
Maar nu is het zo dat ik ALTIJD een software surface krijg toegewezen omdat info->hw_available altijd false is. Als ik handmatig een hardware surface aanmaak werkt alles perfect. Weet iemand hoe dit komt?
Redhat Linux 9.0
libSDL 1.2.5-3
nvidia drivers 4363 voor GeForce Ti4600, werkend
BVD
C++:
1
2
| const SDL_VideoInfo *info; info = SDL_GetVideoInfo(); |
Deze informatie gebruik ik om te bepalen of ik hardware accelerated surfaces kan aanmaken. Zoiets gebruik ik:
C++:
1
2
3
4
5
6
| Uint32 videoflags; videoflags = SDL_DOUBLEBUF; if (info->hw_available) videoflags |= SDL_HWSURFACE; else videoflags |= SDL_SWSURFACE; |
Maar nu is het zo dat ik ALTIJD een software surface krijg toegewezen omdat info->hw_available altijd false is. Als ik handmatig een hardware surface aanmaak werkt alles perfect. Weet iemand hoe dit komt?
Redhat Linux 9.0
libSDL 1.2.5-3
nvidia drivers 4363 voor GeForce Ti4600, werkend
BVD