Skip to content

Commit

Permalink
Refactor: Renamed Materials_DeleteGLTextures to Materials_ReleaseGLTe…
Browse files Browse the repository at this point in the history
…xtures

inline with naming conventions used elsewhere.
  • Loading branch information
danij-deng committed Jul 16, 2011
1 parent 0e77b9e commit 644a646
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions doomsday/engine/portable/include/p_materialmanager.h
Expand Up @@ -35,9 +35,6 @@ struct material_snapshot_s;

void P_MaterialsRegister(void);

/**
* One time initialization of the materials list.
*/
void Materials_Initialize(void);

/**
Expand Down Expand Up @@ -82,7 +79,7 @@ void Materials_Precache(struct material_s* mat, struct materialvariantspecificat
* @param mnamespace @c MN_ANY = delete everything, ELSE
* Only delete those currently in use by materials in the specified namespace.
*/
void Materials_DeleteGLTextures(const char* namespaceName);
void Materials_ReleaseGLTextures(const char* namespaceName);

void Materials_Ticker(timespan_t elapsed);

Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -1376,7 +1376,7 @@ void GL_ReleaseSystemTextures(void)
}
memset(sysFlareTextures, 0, sizeof(sysFlareTextures));

Materials_DeleteGLTextures(MN_SYSTEM_NAME);
Materials_ReleaseGLTextures(MN_SYSTEM_NAME);
UI_ReleaseTextures();

Rend_ParticleReleaseSystemTextures();
Expand Down
6 changes: 3 additions & 3 deletions doomsday/engine/portable/src/p_materialmanager.c
Expand Up @@ -725,7 +725,7 @@ static void releaseGLTexturesForMaterial(material_t* mat)
Material_IterateVariants(mat, releaseGLTexturesForMaterialWorker, NULL);
}

void Materials_DeleteGLTextures(const char* namespaceName)
void Materials_ReleaseGLTextures(const char* namespaceName)
{
materialnamespaceid_t namespaceId = MN_ANY;

Expand All @@ -735,7 +735,7 @@ void Materials_DeleteGLTextures(const char* namespaceName)
if(!VALID_MATERIALNAMESPACEID(namespaceId))
{
#if _DEBUG
Con_Message("Warning:Materials_DeleteGLTextures: Attempt to delete in "
Con_Message("Warning:Materials_ReleaseGLTextures: Attempt to delete in "
"unknown namespace (%s), ignoring.\n", namespaceName);
#endif
return;
Expand All @@ -749,7 +749,7 @@ void Materials_DeleteGLTextures(const char* namespaceName)
}

if(!VALID_MATERIALNAMESPACEID(namespaceId))
Con_Error("Materials_DeleteGLTextures: Internal error, "
Con_Error("Materials_ReleaseGLTextures: Internal error, "
"invalid materialgroup '%i'.", (int) namespaceId);

if(bindings)
Expand Down

0 comments on commit 644a646

Please sign in to comment.