Skip to content

Commit

Permalink
Refactor: Rename UI_ClearTextures to UI_ReleaseTextures to follow naming
Browse files Browse the repository at this point in the history
conventions used elsewhere.
  • Loading branch information
danij-deng committed Jul 16, 2011
1 parent bb8bd83 commit a67f26f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/ui_main.h
Expand Up @@ -218,7 +218,7 @@ ui_color_t* UI_Color(uint id);
/// @return Height of the current UI font.
int UI_FontHeight(void);
void UI_LoadTextures(void);
void UI_ClearTextures(void);
void UI_ReleaseTextures(void);

/// Initializes UI page data prior to use.
void UI_InitPage(ui_page_t* page, ui_object_t* objects);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -1377,7 +1377,7 @@ void GL_ClearSystemTextures(void)
memset(sysFlareTextures, 0, sizeof(sysFlareTextures));

Materials_DeleteGLTextures(MN_SYSTEM_NAME);
UI_ClearTextures();
UI_ReleaseTextures();

Rend_ParticleReleaseSystemTextures();
R_DestroySystemTextures();
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/ui_main.c
Expand Up @@ -290,7 +290,7 @@ void UI_LoadTextures(void)
}
}

void UI_ClearTextures(void)
void UI_ReleaseTextures(void)
{
glDeleteTextures(NUM_UITEXTURES, (const GLuint*) uiTextures);
memset(uiTextures, 0, sizeof(uiTextures));
Expand Down

0 comments on commit a67f26f

Please sign in to comment.