From 9e048d2cf359c305e895fe7c0bebf09016896531 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 9 Mar 2012 15:11:48 -0800 Subject: remap hard coded strings in rdge internal code. --- js/helper-classes/RDGE/src/core/script/utilities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/helper-classes/RDGE/src/core/script/utilities.js') diff --git a/js/helper-classes/RDGE/src/core/script/utilities.js b/js/helper-classes/RDGE/src/core/script/utilities.js index e19c727f..e55f2b33 100755 --- a/js/helper-classes/RDGE/src/core/script/utilities.js +++ b/js/helper-classes/RDGE/src/core/script/utilities.js @@ -159,7 +159,7 @@ function createShader(ctx, strVertShaderName, strFragShaderName, attribs) } else { var vshaderRequest = new XMLHttpRequest(); - vshaderRequest.open("GET", 'assets/shaders/' + strVertShaderName + '.glsl', false); + vshaderRequest.open("GET", g_Engine._assetPath+'shaders/' + strVertShaderName + '.glsl', false); vshaderRequest.send(null); vShader = vshaderRequest.responseText; } @@ -169,7 +169,7 @@ function createShader(ctx, strVertShaderName, strFragShaderName, attribs) } else { var fshaderRequest = new XMLHttpRequest(); - fshaderRequest.open("GET", 'assets/shaders/' + strFragShaderName + '.glsl', false); + fshaderRequest.open("GET", g_Engine._assetPath+'shaders/' + strFragShaderName + '.glsl', false); fshaderRequest.send(null); fShader = fshaderRequest.responseText; } -- cgit v1.2.3