[Plib-devel] build fix for msvc8 and texture loading improovement
Brought to you by:
sjbaker
From: Mathias <Mat...@gm...> - 2006-01-19 19:13:41
|
Hi all, I have two patches attached here. Credits belong to Olaf Flebbe and our=20 discussions during meals ... :) 1. The const-char-hack-removal.diff is required to build on windows using t= he=20 current msvc8 compiler. It corrects the usage of the const qualifier and=20 obsolete some ifdef's in cases where correct usage of consts will make it=20 work without preprocessor. 2. The texture-size-limit.diff which implements an API to limit the maximum= =20 texture size which is thrown into OpenGL. Mipmaps are computed as usual, but if the size of a mipmap level exceeds th= e=20 maximum texture size it is just not handed off to OpenGL. The default behavour is unchanged until you call ssgSetTextureMaxSize with = a=20 positive argument from your application to activate that limit. We have also a patch for flightgear in the works which makes use of that=20 feature. I for myself used a similar but hardcoded approach to be able to run=20 flightgear on my notebook with 32MB gpu memory. Without such a limit=20 flightgear just creeps instead of runs ... Please apply! Many thanks Mathias =2D-=20 Mathias Fr=F6hlich, email: Mat...@gm... |