ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/texcache.c
(Generate patch)

Comparing cf.schmorp.de/Deliantra-Client/texcache.c (file contents):
Revision 1.8 by root, Sun Nov 29 14:45:12 2009 UTC vs.
Revision 1.9 by root, Sun Nov 18 00:52:22 2018 UTC

61} 61}
62 62
63void 63void
64tex_backup (tc_texture *tex) 64tex_backup (tc_texture *tex)
65{ 65{
66 tex->saved = g_slice_alloc (TC_WIDTH * TC_HEIGHT); 66 tex->saved = (char *)g_slice_alloc (TC_WIDTH * TC_HEIGHT);
67 67
68 glBindTexture (GL_TEXTURE_2D, tex->name); 68 glBindTexture (GL_TEXTURE_2D, tex->name);
69 glGetTexImage (GL_TEXTURE_2D, 0, GL_ALPHA, GL_UNSIGNED_BYTE, tex->saved); 69 glGetTexImage (GL_TEXTURE_2D, 0, GL_ALPHA, GL_UNSIGNED_BYTE, tex->saved);
70} 70}
71 71

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines