More correct.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1395 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
12a172bc95
commit
fe6158f8a9
1 changed files with 2 additions and 2 deletions
|
@ -1428,7 +1428,7 @@ void GL_DrawAliasMesh (mesh_t *mesh, int texnum)
|
|||
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
|
||||
qglTexCoordPointer(2, GL_FLOAT, 0, mesh->st_array);
|
||||
|
||||
qglDrawElements(GL_TRIANGLES, mesh->numindexes, GL_UNSIGNED_INT, mesh->indexes);
|
||||
qglDrawRangeElements(GL_TRIANGLES, 0, mesh->numvertexes, mesh->numindexes, GL_UNSIGNED_INT, mesh->indexes);
|
||||
|
||||
qglDisableClientState( GL_VERTEX_ARRAY );
|
||||
qglDisableClientState( GL_COLOR_ARRAY );
|
||||
|
@ -1791,7 +1791,7 @@ void R_DrawGAliasModel (entity_t *e)
|
|||
fog = CM_FogForOrigin(currententity->origin);
|
||||
#endif
|
||||
|
||||
qglColor4f(shadelight[0], shadelight[1], shadelight[2], e->alpha);
|
||||
qglColor4f(shadelight[0]/255, shadelight[1]/255, shadelight[2]/255, e->alpha);
|
||||
|
||||
memset(&mesh, 0, sizeof(mesh));
|
||||
for(surfnum=0; inf; ((inf->nextsurf)?(inf = (galiasinfo_t*)((char *)inf + inf->nextsurf)):(inf=NULL)), surfnum++)
|
||||
|
|
Loading…
Reference in a new issue