Aha, make veryclean did the trick (however killing BattleLord with it is a bit more difficult
), here is the backtrace:
Breakpoint 1, output_if_debug (prefixString=0xaac57f10 "Mesa: User error",
outputString=0xbfffd37c "GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)", newline=1 '\001')
at ../../src/mesa/main/errors.c:810
810 if (debug == -1) {
(gdb) bt
#0 output_if_debug (prefixString=0xaac57f10 "Mesa: User error",
outputString=0xbfffd37c "GL_INVALID_VALUE in glTexSubImage2D(xoffset+width)", newline=1 '\001')
at ../../src/mesa/main/errors.c:810
#1 0xa9ff1c41 in _mesa_error (ctx=0x11033760, error=1281, fmtString=0xaac6e21b "%s%dD(xoffset+width)")
at ../../src/mesa/main/errors.c:1037
#2 0xaa06010c in error_check_subtexture_dimensions (ctx=0x11033760,
function=0xaac6e82c "glTexSubImage", dims=2, destImage=0x11533b78, xoffset=0, yoffset=0, zoffset=0,
subWidth=256, subHeight=256, subDepth=1) at ../../src/mesa/main/teximage.c:1496
#3 0xaa061784 in texsubimage_error_check (ctx=0x11033760, dimensions=2, target=3553, level=0,
xoffset=0, yoffset=0, zoffset=0, width=256, height=256, depth=1, format=32993, type=5121)
at ../../src/mesa/main/teximage.c:2287
#4 0xaa063594 in texsubimage (ctx=0x11033760, dims=2, target=3553, level=0, xoffset=0, yoffset=0,
zoffset=0, width=256, height=256, depth=1, format=32993, type=5121, pixels=0x12021548)
at ../../src/mesa/main/teximage.c:3156
#5 0xaa063852 in _mesa_TexSubImage2D (target=3553, level=0, xoffset=0, yoffset=0, width=256,
height=256, format=32993, type=5121, pixels=0x12021548) at ../../src/mesa/main/teximage.c:3219
#6 0x0818f4f0 in uploadtexture (doalloc=0, xsiz=256, ysiz=256, intexfmt=6407, texfmt=32993,
pic=0x12021548, tsizx=-1, tsizy=256, dameth=4) at src/polymost.c:1164
#7 0x08191fa2 in gloadtile_hi (dapic=745, dapalnum=255, facen=0, hicr=0x10c1e038, dameth=4,
pth=0x1152e7e0, doalloc=0, effect=0 '\000') at src/polymost.c:2016
#8 0x0818d467 in gltexcache (dapicnum=745, dapalnum=255, dameth=4) at src/polymost.c:348
#9 0x081a6b55 in polymost_precache (dapicnum=745, dapalnum=255, datype=1) at src/polymost.c:6465
#10 0x0811d320 in G_CacheMapData () at source/premap.c:517
#11 0x0812681a in postloadplayer (savegamep=1) at source/savegame.c:1761
#12 0x08125200 in sv_loadsnapshot (fil=61, spot=3, h=0xbfffe906) at source/savegame.c:1356
#13 0x08122d84 in G_LoadPlayer (spot=3) at source/savegame.c:306
#14 0x0812310c in G_LoadPlayerMaybeMulti (slot=3) at source/savegame.c:394
#15 0x080ea29a in M_DisplayMenus () at source/menus.c:1743
#16 0x080b6cca in G_PlaybackDemo () at source/demo.c:937
#17 0x0808b2d7 in app_main (argc=6, argv=0xbffff284) at source/game.c:10653
#18 0x081dda44 in main (argc=6, argv=0xbffff284) at src/sdlayer.c:262