From: Thomas Debesse Date: Sun, 15 Jul 2018 12:50:53 +0000 (+0200) Subject: loadSpecial is not used X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F101%2Fhead;p=xonotic%2Fnetradiant.git loadSpecial is not used --- diff --git a/plugins/shaders/shaders.cpp b/plugins/shaders/shaders.cpp index 0f0de908..a88fe2e3 100644 --- a/plugins/shaders/shaders.cpp +++ b/plugins/shaders/shaders.cpp @@ -210,20 +210,6 @@ Image *loadHeightmap(void *environment, const char *name) return 0; } - -Image *loadSpecial(void *environment, const char *name) -{ - if (*name == '_') { // special image - StringOutputStream bitmapName(256); - bitmapName << GlobalRadiant().getAppPath() << "bitmaps/" << name + 1 << ".png"; - Image *image = loadBitmap(environment, bitmapName.c_str()); - if (image != 0) { - return image; - } - } - return GlobalTexturesCache().loadImage(name); -} - class ShaderPoolContext { };