[quake3-commits] [ioquake/ioq3] cb2fa4: Only allow model meshes to have SHADER_MAX_VERTEXE...
Zack Middleton
zturtleman at gmail.com
Tue Jun 18 19:08:29 EDT 2013
Branch: refs/heads/master
Home: https://github.com/ioquake/ioq3
Commit: cb2fa48d65ab4f151a91c3ac4624f49e0600f49f
https://github.com/ioquake/ioq3/commit/cb2fa48d65ab4f151a91c3ac4624f49e0600f49f
Author: Zack Middleton <zturtleman at gmail.com>
Date: 2013-06-18 (Tue, 18 Jun 2013)
Changed paths:
M code/renderergl1/tr_model.c
M code/renderergl1/tr_model_iqm.c
M code/renderergl2/tr_model.c
M code/renderergl2/tr_model_iqm.c
Log Message:
-----------
Only allow model meshes to have SHADER_MAX_VERTEXES - 1 vertexes
The last index is used to check for buffer overflows. See RB_CheckOverflow and RB_EndSurface.
Commit: aa2ea68741f913b861c8e7ce6f0ac07a71c1f36a
https://github.com/ioquake/ioq3/commit/aa2ea68741f913b861c8e7ce6f0ac07a71c1f36a
Author: Zack Middleton <zturtleman at gmail.com>
Date: 2013-06-18 (Tue, 18 Jun 2013)
Changed paths:
M code/renderergl1/tr_model_iqm.c
M code/renderergl2/tr_model_iqm.c
Log Message:
-----------
Fix IQM tess buffer overflow
Set the variables that use tess.numVertexes after calling RB_CHECKOVERFLOW() as it may set tess.numVertexes to 0!
Could cause visual issues and error "RB_EndSurface() - SHADER_MAX_VERTEXES hit".
Compare: https://github.com/ioquake/ioq3/compare/00c1831edb4f...aa2ea68741f9
More information about the quake3-commits
mailing list