*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1192 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-08-06 01:36:38 +00:00
parent 73ecb4a8e5
commit 4770ce26d5
3 changed files with 12 additions and 5 deletions
+2 -3
View File
@@ -333,7 +333,6 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract)
reflecting = true;
refracting = refract;
extern int hwtexsize;
int size = 1<<reflectres, sizelimit = min(hwtexsize, min(w, h));
while(size > sizelimit) size /= 2;
if(size!=reflectlastsize)
@@ -462,8 +461,8 @@ void drawminimap(int w, int h)
{
if(!minimapdirty) return;
int size = 1<<minimapres;
while(size > w || size > h) size /= 2;
int size = 1<<minimapres, sizelimit = min(hwtexsize, min(w, h));
while(size > sizelimit) size /= 2;
if(size!=minimaplastsize)
{
glDeleteTextures(1, &minimaptex);