Group :: Games/Sports
RPM: TORCS
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: torcs-glibc.patch
Download
Download
--- src/modules/graphic/ssggraph/grtexture.cpp.orig 2006-11-05 04:42:26 +0300
+++ src/modules/graphic/ssggraph/grtexture.cpp 2009-05-24 13:33:10 +0400
@@ -47,10 +47,11 @@ bool doMipMap(const char *tfname, int mi
}
if (mipmap == TRUE) {
+ const char *s;
// Check the shadow.
s = strrchr(tfname, '/');
if (s == NULL) {
- s = (char *) tfname;
+ s = tfname;
} else {
s++;
}
--- src/tools/trackgen/objects.cpp.orig 2006-11-05 04:42:31 +0300
+++ src/tools/trackgen/objects.cpp 2009-05-24 13:37:30 +0400
@@ -273,7 +273,7 @@ ssgSaveLeaf (ssgEntity *ent, FILE *save_
if ((tfname != NULL) && (tfname[0] != 0)) {
if (writeTextureWithoutPath) {
- char *s = strrchr (tfname, '\\');
+ const char *s = strrchr (tfname, '\\');
if (s == NULL) {
s = strrchr (tfname, '/');