]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/shaderlib.h
allow undo “make detail/structural”, <3 @SpiKe, thanks @Garux, fix #76
[xonotic/netradiant.git] / libs / shaderlib.h
index c4e5ba3b2f20309c5e83c847ebcfcfba1f2318a8..ee972437befeb934fbfb06c11862af6873d6329b 100644 (file)
@@ -50,16 +50,6 @@ bool operator()( const CopiedString& shader, const CopiedString& other ) const {
 }
 };
 
-static inline bool shader_is_diffuse( const char *shader ){
-       return !string_equal_suffix( shader, "_bump" )
-                  && !string_equal_suffix( shader, "_glow" )
-                  && !string_equal_suffix( shader, "_h" )
-                  && !string_equal_suffix( shader, "_local" )
-                  && !string_equal_suffix( shader, "_luma" )
-                  && !string_equal_suffix( shader, "_nm" )
-                  && !string_equal_suffix( shader, "_s" );
-}
-
 inline bool shader_valid( const char* shader ){
        return string_is_ascii( shader )
                   && strchr( shader, ' ' ) == 0
@@ -67,8 +57,7 @@ inline bool shader_valid( const char* shader ){
                   && strchr( shader, '\r' ) == 0
                   && strchr( shader, '\t' ) == 0
                   && strchr( shader, '\v' ) == 0
-                  && strchr( shader, '\\' ) == 0
-                  && shader_is_diffuse( shader );
+                  && strchr( shader, '\\' ) == 0;
 }
 
 inline const char* GlobalTexturePrefix_get(){