Browse Source

Fixed shader creation

Alex Szpakowski 12 years ago
parent
commit
738f471978
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 1 - 1
src/modules/graphics/opengl/wrap_Graphics.cpp

@@ -502,7 +502,7 @@ int w_newShader(lua_State *L)
 		// clamp stack to 2 elements
 		// clamp stack to 2 elements
 		lua_settop(L, 2);
 		lua_settop(L, 2);
 
 
-		luax_getfunction(L, "graphics", "_effectCodeToGLSL");
+		luax_getfunction(L, "graphics", "_shaderCodeToGLSL");
 
 
 		// push vertcode and fragcode strings to the top of the stack so they become arguments for the function
 		// push vertcode and fragcode strings to the top of the stack so they become arguments for the function
 		lua_pushvalue(L, 1);
 		lua_pushvalue(L, 1);