diff --git a/data/shaders/sunlightshadow.frag b/data/shaders/sunlightshadow.frag index 311889ab0..194a68333 100644 --- a/data/shaders/sunlightshadow.frag +++ b/data/shaders/sunlightshadow.frag @@ -16,6 +16,7 @@ uniform mat4 ProjectionMatrix; uniform mat4 InverseViewMatrix; uniform mat4 InverseProjectionMatrix; uniform mat4 ShadowViewProjMatrixes[4]; +uniform vec2 screen; #else layout (std140) uniform MatrixesData { diff --git a/src/guiengine/scalable_font.hpp b/src/guiengine/scalable_font.hpp index 7cf893c46..98962e6d3 100644 --- a/src/guiengine/scalable_font.hpp +++ b/src/guiengine/scalable_font.hpp @@ -5,17 +5,19 @@ #ifndef __C_GUI_FONT_H_INCLUDED__ #define __C_GUI_FONT_H_INCLUDED__ -#include "IrrCompileConfig.h" +#include "utils/leak_check.hpp" +#include "IrrCompileConfig.h" #include "IGUIFontBitmap.h" #include "irrString.h" #include "irrMap.h" #include "IXMLReader.h" #include "IReadFile.h" #include "irrArray.h" -#include -#include "utils/leak_check.hpp" + +#include +#include namespace irr { diff --git a/tools/font_tool/CMakeLists.txt b/tools/font_tool/CMakeLists.txt index a0e58f792..1073b9185 100644 --- a/tools/font_tool/CMakeLists.txt +++ b/tools/font_tool/CMakeLists.txt @@ -14,10 +14,10 @@ if(FONT_TOOL) if(FREETYPE_FOUND) include_directories(${FREETYPE_INCLUDE_DIRS}) add_executable(font_tool CFontTool.cpp main.cpp) + target_link_libraries(font_tool stkirrlicht) target_link_libraries(font_tool ${FREETYPE_LIBRARIES}) target_link_libraries(font_tool ${X11_Xft_LIB} Xxf86vm) target_link_libraries(font_tool ${OPENGL_LIBRARIES}) - target_link_libraries(font_tool stkirrlicht) target_link_libraries(font_tool ${FONTCONFIG_LIBRARY}) else() message(STATUS "Freetype was not found, the font tool won't be built (only useful for developers)")