Skip to content

Commit

Permalink
fix si->implicitImagePath extension presence vagueness added in c3437b7
Browse files Browse the repository at this point in the history
closes #220
  • Loading branch information
Garux committed Oct 30, 2024
1 parent 3d41d8f commit 958b99a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/quake3/q3map2/shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ const shaderInfo_t *CustomShader( const shaderInfo_t *si, const char *find, char
"\t}\n"
"\tq3map_styleMarker\n"
"\t{\n"
"\t\tmap %s\n"
"\t\tmap %s.tga\n"
"\t\tblendFunc GL_DST_COLOR GL_ZERO\n"
"\t\trgbGen identity\n"
"\t}\n"
Expand All @@ -388,7 +388,7 @@ const shaderInfo_t *CustomShader( const shaderInfo_t *si, const char *find, char
"{ // Q3Map2 defaulted (implicitMask)\n"
"\tcull none\n"
"\t{\n"
"\t\tmap %s\n"
"\t\tmap %s.tga\n"
"\t\talphaFunc GE128\n"
"\t\tdepthWrite\n"
"\t}\n"
Expand All @@ -399,7 +399,7 @@ const shaderInfo_t *CustomShader( const shaderInfo_t *si, const char *find, char
"\t}\n"
"\tq3map_styleMarker\n"
"\t{\n"
"\t\tmap %s\n"
"\t\tmap %s.tga\n"
"\t\tblendFunc GL_DST_COLOR GL_ZERO\n"
"\t\tdepthFunc equal\n"
"\t\trgbGen identity\n"
Expand All @@ -416,7 +416,7 @@ const shaderInfo_t *CustomShader( const shaderInfo_t *si, const char *find, char
"{ // Q3Map2 defaulted (implicitBlend)\n"
"\tcull none\n"
"\t{\n"
"\t\tmap %s\n"
"\t\tmap %s.tga\n"
"\t\tblendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA\n"
"\t}\n"
"\t{\n"
Expand Down Expand Up @@ -998,7 +998,7 @@ static void ParseShaderFile( const char *filename ){
si->implicitImagePath = si->shader;
}
else{
si->implicitImagePath = token;
si->implicitImagePath( PathExtensionless( token ) );
}
}

Expand All @@ -1009,7 +1009,7 @@ static void ParseShaderFile( const char *filename ){
si->implicitImagePath = si->shader;
}
else{
si->implicitImagePath = token;
si->implicitImagePath( PathExtensionless( token ) );
}
}

Expand All @@ -1020,7 +1020,7 @@ static void ParseShaderFile( const char *filename ){
si->implicitImagePath = si->shader;
}
else{
si->implicitImagePath = token;
si->implicitImagePath( PathExtensionless( token ) );
}
}

Expand Down

0 comments on commit 958b99a

Please sign in to comment.