From: havoc Date: Sun, 13 Feb 2011 08:56:55 +0000 (+0000) Subject: fix a compile error where an int was being assigned to an enum variable X-Git-Tag: xonotic-v0.5.0~425^2~59 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5cd6ac6434baf9fb0161abe431eb954e7cd9e0a0;p=xonotic%2Fdarkplaces.git fix a compile error where an int was being assigned to an enum variable git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10842 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/dpsoftrast.c b/dpsoftrast.c index 7dd06550..1e9722b5 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -1357,7 +1357,7 @@ void DPSOFTRAST_UniformMatrix4fv(DPSOFTRAST_UNIFORM uniform, int arraysize, int { __m128 m0, m1, m2, m3; DPSOFTRAST_Command_UniformMatrix4f *command = DPSOFTRAST_ALLOCATECOMMAND(UniformMatrix4f); - command->index = index; + command->index = (DPSOFTRAST_UNIFORM)index; if (((size_t)v)&(ALIGN_SIZE-1)) { m0 = _mm_loadu_ps(v);