[core] don't rebuild shaders unless they change

This commit is contained in:
Konstantin Käfer
2015-12-10 11:59:30 -08:00
parent b7a238f425
commit 655b777635
14 changed files with 90 additions and 184 deletions

View File

@@ -1,5 +1,6 @@
#include <mbgl/shader/pattern_shader.hpp>
#include <mbgl/shader/shaders.hpp>
#include <mbgl/shader/pattern.vertex.hpp>
#include <mbgl/shader/pattern.fragment.hpp>
#include <mbgl/platform/gl.hpp>
#include <cstdio>
@@ -9,8 +10,7 @@ using namespace mbgl;
PatternShader::PatternShader()
: Shader(
"pattern",
shaders[PATTERN_SHADER].vertex,
shaders[PATTERN_SHADER].fragment
shaders::pattern::vertex, shaders::pattern::fragment
) {
}