ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.190 by root, Thu Apr 26 17:41:23 2007 UTC vs.
Revision 1.191 by root, Thu Apr 26 23:51:02 2007 UTC

1740 smooth_key *skey = (smooth_key *)HeKEY (he); 1740 smooth_key *skey = (smooth_key *)HeKEY (he);
1741 IV bits = SvIVX (HeVAL (he)); 1741 IV bits = SvIVX (HeVAL (he));
1742 1742
1743 if (!(bits & 0x1000) 1743 if (!(bits & 0x1000)
1744 && skey->level == level 1744 && skey->level == level
1745 && level >= smooth_max [skey->x][skey->y]) 1745 && level > smooth_max [skey->x][skey->y])
1746 { 1746 {
1747 maptex tex = self->tex [skey->tile]; 1747 maptex tex = self->tex [skey->tile];
1748 int px = (((int)skey->x) - 1) * T; 1748 int px = (((int)skey->x) - 1) * T;
1749 int py = (((int)skey->y) - 1) * T; 1749 int py = (((int)skey->y) - 1) * T;
1750 int border = bits & 15; 1750 int border = bits & 15;
2395 /* make a half-assed attempt at returning the memory used by the texture */ 2395 /* make a half-assed attempt at returning the memory used by the texture */
2396 /* textures are frequently being reused by cfplus anyway */ 2396 /* textures are frequently being reused by cfplus anyway */
2397 /*glBindTexture (GL_TEXTURE_2D, name);*/ 2397 /*glBindTexture (GL_TEXTURE_2D, name);*/
2398 /*glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA, 0, 0, 0, GL_ALPHA, GL_UNSIGNED_BYTE, 0);*/ 2398 /*glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA, 0, 0, 0, GL_ALPHA, GL_UNSIGNED_BYTE, 0);*/
2399 av_push (texture_av, (SV *)(size_t)name); 2399 av_push (texture_av, (SV *)(size_t)name);
2400 /*{ GLuint name_ = name; glDeleteTextures (1, &name_); }*/ 2400 { GLuint name_ = name; glDeleteTextures (1, &name_); }
2401} 2401}
2402 2402
2403int glGenList () 2403int glGenList ()
2404 CODE: 2404 CODE:
2405 RETVAL = glGenLists (1); 2405 RETVAL = glGenLists (1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines