|
|
@ -1943,6 +1943,23 @@ void GL_ProcessTexture( int texnum, float gamma, int topColor, int bottomColor ) |
|
|
|
gEngfuncs.FS_FreeImage( pic ); |
|
|
|
gEngfuncs.FS_FreeImage( pic ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
================ |
|
|
|
|
|
|
|
GL_TexMemory |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return size of all uploaded textures |
|
|
|
|
|
|
|
================ |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
int GL_TexMemory( void ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
int i, total = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for( i = 0; i < gl_numTextures; i++ ) |
|
|
|
|
|
|
|
total += gl_textures[i].size; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return total; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
============================================================================== |
|
|
|
============================================================================== |
|
|
|
|
|
|
|
|
|
|
|