*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1178 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-07-26 01:48:04 +00:00
parent a13aadb796
commit 01a71302e7
7 changed files with 63 additions and 40 deletions
+3 -2
View File
@@ -331,8 +331,9 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract)
reflecting = true;
refracting = refract;
int size = 1<<reflectres;
while(size > w || size > h) size /= 2;
extern int hwtexsize;
int size = 1<<reflectres, sizelimit = min(hwtexsize, min(w, h));
while(size > sizelimit) size /= 2;
if(size!=reflectlastsize)
{
if(reflecttex) glDeleteTextures(1, &reflecttex);