minetest/minetest — pull request #1041 by Novatux (2013-12-08 06:58:20+00:00)
Title: Fix shaders on some GPUs

Some GPUs don't handle having 2 or more textures at once. Therefore, the way the information about the existence of normalmaps is passed to them (a second texture), you get black textures when shaders are enabled. This pull fixes it by putting that code in an #ifdef, and by adding a corresponding #define when compiling the shader if either bumpmapping or parallax mapping is enabled