@@ -282,20 +282,15 @@ Shader* CResourceManager::_lua_Create (LPCSTR d_shader, LPCSTR s_textures)
282282 {
283283 // Analyze possibility to detail this shader
284284 C.iElement = 0 ;
285- // . C.bDetail = RImplementation.Resources->_GetDetailTexture(*C.L_textures[0],C.detail_texture,C.detail_scaler);
286- // C.bDetail = RImplementation.Resources->m_textures_description.GetDetailTexture(C.L_textures[0],C.detail_texture,C.detail_scaler);
287- // XXX: (RImplementation.Resources->) part is redundant here
288- C.bDetail = RImplementation.Resources ->m_textures_description .GetDetailTexture (C.L_textures [0 ],C.detail_texture ,C.detail_scaler );
285+ C.bDetail = m_textures_description.GetDetailTexture (C.L_textures [0 ], C.detail_texture , C.detail_scaler );
289286
290287 if (C.bDetail ) S.E [0 ] = C._lua_Compile (s_shader," normal_hq" );
291288 else S.E [0 ] = C._lua_Compile (s_shader," normal" );
292289 } else {
293290 if (ScriptEngine.object (s_shader," normal" ,LUA_TFUNCTION))
294291 {
295292 C.iElement = 0 ;
296- // . C.bDetail = RImplementation.Resources->_GetDetailTexture(*C.L_textures[0],C.detail_texture,C.detail_scaler);
297- // C.bDetail = RImplementation.Resources->m_textures_description.GetDetailTexture(C.L_textures[0],C.detail_texture,C.detail_scaler);
298- C.bDetail = RImplementation.Resources ->m_textures_description .GetDetailTexture (C.L_textures [0 ],C.detail_texture ,C.detail_scaler );
293+ C.bDetail = m_textures_description.GetDetailTexture (C.L_textures [0 ], C.detail_texture , C.detail_scaler );
299294 S.E [0 ] = C._lua_Compile (s_shader," normal" );
300295 }
301296 }
@@ -304,9 +299,7 @@ Shader* CResourceManager::_lua_Create (LPCSTR d_shader, LPCSTR s_textures)
304299 if (ScriptEngine.object (s_shader," normal" ,LUA_TFUNCTION))
305300 {
306301 C.iElement = 1 ;
307- // . C.bDetail = RImplementation.Resources->_GetDetailTexture(*C.L_textures[0],C.detail_texture,C.detail_scaler);
308- // C.bDetail = RImplementation.Resources->m_textures_description.GetDetailTexture(C.L_textures[0],C.detail_texture,C.detail_scaler);
309- C.bDetail = RImplementation.Resources ->m_textures_description .GetDetailTexture (C.L_textures [0 ],C.detail_texture ,C.detail_scaler );
302+ C.bDetail = m_textures_description.GetDetailTexture (C.L_textures [0 ], C.detail_texture , C.detail_scaler );
310303 S.E [1 ] = C._lua_Compile (s_shader," normal" );
311304 }
312305
0 commit comments