Chaos Mod: Flashlight locks the game in OpenGL with KM's new GL_Upload32
Issue #13
resolved
I haven't played our other mods in a good long while that we ported and noticed in OpenGL turning on the flashlight with "cmd flashlight" will lock the game. It's not 3DFX/Mesa/Sage/whatever related as it happens in Windows on modern machines as well. Haven't looked at the code yet to see why.
Comments (6)
-
reporter -
reporter If I add that model to precache at the beginning the game will lock up loading it as well in opengl on map load
-
reporter Bug is in ref_gl at memcpy ((char )pheader + pheader->ofs_skins, (char )pinmodel + pheader->ofs_skins, pheader->num_skins*MAX_SKINNAME);
-
reporter Bug is actually somewhere in the NEW GL_Upload32 by KM; using the original GL_Upload32 has no issues.
-
reporter -
reporter - changed status to resolved
Infinite loop bug in non_power_of_two code.
- Log in to comment
Offending code is ent->client->flashlight->s.modelindex = gi.modelindex ("models/objects/dummy/tris.md2"); which is necessary for the flashlight, if its omitted there is no light and it no longer functions in software.