Skip to content

Commit

Permalink
Fixed|Renderer: Non-functional "texreset raw"
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Dec 9, 2013
1 parent b3afeeb commit 480a1c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doomsday/client/src/gl/gl_texmanager.cpp
Expand Up @@ -398,4 +398,5 @@ void GL_ReleaseTexturesForRawImages()
}
}
Z_Free(rawTexs);
LOG_MSG("All GL textures for RawTextures deleted.");
}
4 changes: 2 additions & 2 deletions doomsday/client/src/render/rend_main.cpp
Expand Up @@ -412,6 +412,7 @@ void Rend_Register()
C_CMD_FLAGS ("lowres", "", LowRes, CMDF_NO_DEDICATED);
C_CMD_FLAGS ("mipmap", "i", MipMap, CMDF_NO_DEDICATED);
C_CMD_FLAGS ("texreset", "", TexReset, CMDF_NO_DEDICATED);
C_CMD_FLAGS ("texreset", "s", TexReset, CMDF_NO_DEDICATED);

BiasIllum::consoleRegister();
BiasSurface::consoleRegister();
Expand All @@ -423,7 +424,6 @@ void Rend_Register()
Rend_ParticleRegister();
Rend_RadioRegister();
Rend_SpriteRegister();
//Rend_ConsoleRegister();
LensFx_Register();
fx::Vignette::consoleRegister();
fx::LensFlares::consoleRegister();
Expand Down Expand Up @@ -5223,7 +5223,7 @@ D_CMD(TexReset)
{
DENG2_UNUSED(src);

if(argc == 2 && !stricmp(argv[1], "raw"))
if(argc == 2 && !String(argv[1]).compareWithoutCase("raw"))
{
// Reset just raw images.
GL_ReleaseTexturesForRawImages();
Expand Down

0 comments on commit 480a1c8

Please sign in to comment.