mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-21 19:40:56 +00:00
@TTimo -style formatting :>
This commit is contained in:
parent
1d3e5731dd
commit
ea202cd932
1 changed files with 5 additions and 5 deletions
|
@ -37,15 +37,15 @@ CPicoSurface::CPicoSurface( picoSurface_t *pSurface ){
|
||||||
// jdolan: If the shader fails to load, try skin.tga in the model's
|
// jdolan: If the shader fails to load, try skin.tga in the model's
|
||||||
// directory as a fall-back. This is a hack for malformed models.
|
// directory as a fall-back. This is a hack for malformed models.
|
||||||
|
|
||||||
if ( m_shader->IsDefault()) {
|
if ( m_shader->IsDefault() ) {
|
||||||
gchar *dir = g_path_get_dirname(m_pSurface->model->name);
|
gchar *dir = g_path_get_dirname( m_pSurface->model->name );
|
||||||
gchar *skin = g_strdup_printf("%s/skin.tga", dir);
|
gchar *skin = g_strdup_printf( "%s/skin.tga", dir );
|
||||||
|
|
||||||
m_shader->DecRef();
|
m_shader->DecRef();
|
||||||
m_shader = QERApp_Shader_ForName( skin );
|
m_shader = QERApp_Shader_ForName( skin );
|
||||||
|
|
||||||
g_free(skin);
|
g_free( skin );
|
||||||
g_free(dir);
|
g_free( dir );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue