From fe6158f8a9c3bc94953ad208fcd4c20bdd3b669c Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 29 Sep 2005 23:28:08 +0000 Subject: [PATCH] More correct. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1395 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_alias.c b/engine/gl/gl_alias.c index 20ee56c77..c32798417 100644 --- a/engine/gl/gl_alias.c +++ b/engine/gl/gl_alias.c @@ -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++)