3D model sigsegv
Sometimes occurs when the game first attempts to draw a rollangled model. Happened while testing !1514 (closed) but was able to reproduce in 2.2.9.
001635C4 00000001 000000FF 00000000 srb2win.exe! ?? [C:/SRB2/src/hardware/hw_md2.c @ 1257]
1255: // fix uvs (texture coordinates) to take into account that the actual texture
1256: // has empty space added until the next power of two
> 1257: for (j = 0; j < numVertices; j++)
1258: {
1259: *uvWritePtr++ = *uvReadPtr++ * gpatch->max_s;
00166210 000000FF 00000000 00000001 srb2win.exe!HWR_DrawModel [C:/SRB2/src/hardware/hw_md2.c @ 1481]
1479: if (memcmp(&(hwrPatch->max_s), &(md2->model->max_s), sizeof(md2->model->max_s)) != 0 ||
1480: memcmp(&(hwrPatch->max_t), &(md2->model->max_t), sizeof(md2->model->max_t)) != 0)
> 1481: adjustTextureCoords(md2->model, spr->gpatch);
1482: HWR_GetMappedPatch(spr->gpatch, spr->colormap);
1483: }```