--- deliantra/Deliantra-Client/texcache.c 2006/07/04 23:56:34 1.2 +++ deliantra/Deliantra-Client/texcache.c 2007/04/27 21:27:51 1.3 @@ -45,7 +45,7 @@ while (first_texture) { tc_texture *next = first_texture->next; - glDeleteTextures (1, &first_texture->name); + del_texture (first_texture->name); g_slice_free (tc_texture, first_texture); first_texture = next; } @@ -79,7 +79,7 @@ match = g_slice_new (tc_texture); match->next = first_texture; first_texture = match; - glGenTextures (1, &match->name); + match->name = gen_texture (); match->avail = TC_HEIGHT; glBindTexture (GL_TEXTURE_2D, match->name);