Skip to content

Commit

Permalink
Merge branch 'master' of github:jpfau/legesmotus
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Apr 18, 2011
2 parents 3a5400a + 17c9209 commit e678f78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/file.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const char* LM::user_dir() {
if (SUCCEEDED(err)) { if (SUCCEEDED(err)) {
dir = path; dir = path;
dir += "\\Leges Motus\\"; dir += "\\Leges Motus\\";
if (!CreateDirectory(cfg.c_str(), NULL)) { if (!CreateDirectory(dir.c_str(), NULL)) {
if (GetLastError() != ERROR_ALREADY_EXISTS) { if (GetLastError() != ERROR_ALREADY_EXISTS) {
WARN("Couldn't create config directory"); WARN("Couldn't create config directory");
} }
Expand Down
6 changes: 3 additions & 3 deletions data/shaders/gl/blur.frag
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ uniform float d;
uniform int ksize; uniform int ksize;


void main() { void main() {
vec4 csum; vec4 csum = vec4(0.0, 0.0, 0.0, 0.0);
float sum; float sum = 0.0;
vec2 t = gl_TexCoord[0].st; vec2 t = gl_TexCoord[0].st;
for (int i = 0; i < ksize; ++i) { for (int i = 0; i < ksize; ++i) {
for (int j = 0; j < ksize; ++j) { for (int j = 0; j < ksize; ++j) {
Expand All @@ -17,4 +17,4 @@ void main() {
} }
csum /= sum; csum /= sum;
gl_FragColor = gl_Color*vec4(csum.r/csum.a, csum.g/csum.a, csum.b/csum.a, csum.a); gl_FragColor = gl_Color*vec4(csum.r/csum.a, csum.g/csum.a, csum.b/csum.a, csum.a);
} }

0 comments on commit e678f78

Please sign in to comment.