hora dejo de verse todo de color negro. las texturas que estan dentro de gta3.img se estaban convirtiendo mal. por eso se veia negro. ahora usa las imagenes directamente. esto arregla los problemas visuales... pero no se si el juego se queda sin memoria y crashea al jugar un par de minutos. algo que no pasaba antes

This commit is contained in:
Dante Leoncini 2026-05-05 01:10:16 -03:00
parent d4d2f375d2
commit 39c75bb8c5
3 changed files with 8 additions and 6 deletions

View file

@ -270,7 +270,7 @@ CStreaming::Init2(void)
void void
CStreaming::Init(void) CStreaming::Init(void)
{ {
#ifdef USE_TXD_CDIMAGE /*#ifdef USE_TXD_CDIMAGE
int txdHandle = CFileMgr::OpenFile("MODELS\\TXD.IMG", "r"); int txdHandle = CFileMgr::OpenFile("MODELS\\TXD.IMG", "r");
if (txdHandle) if (txdHandle)
CFileMgr::CloseFile(txdHandle); CFileMgr::CloseFile(txdHandle);
@ -285,9 +285,9 @@ CStreaming::Init(void)
CStreaming::Init2(); CStreaming::Init2();
} }
} }
#else #else*/
CStreaming::Init2(); CStreaming::Init2();
#endif //#endif
} }
void void

View file

@ -930,7 +930,7 @@ setLights(WorldLights *lightData)
glDisable(GL_LIGHTING); glDisable(GL_LIGHTING);
return 0; return 0;
int i, n; /*int i, n;
Light *l; Light *l;
int32 bits = 0; int32 bits = 0;
@ -997,7 +997,7 @@ out:
glDisable(GL_LIGHTING); glDisable(GL_LIGHTING);
objectDirty = 1; objectDirty = 1;
return bits; return bits;*/
} }
void void

View file

@ -106,7 +106,9 @@ defaultRenderCB(Atomic *atomic, InstanceDataHeader *header)
uint32 flags = atomic->geometry->flags; uint32 flags = atomic->geometry->flags;
setWorldMatrix(atomic->getFrame()->getLTM()); setWorldMatrix(atomic->getFrame()->getLTM());
int32 vsBits = lightingCB(atomic); //int32 vsBits = lightingCB(atomic);
glDisable(GL_LIGHTING);
setupVertexInput(header); setupVertexInput(header);