From: havoc Date: Mon, 3 Dec 2007 10:49:24 +0000 (+0000) Subject: reverted texel nudging code that was committed by divverent and credited X-Git-Tag: xonotic-v0.1.0preview~2730 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7662b35e2fb5a8e6929f1a42506356a32f96162c;p=xonotic%2Fdarkplaces.git reverted texel nudging code that was committed by divverent and credited to Black, this was making all pics blurry in Quake (particularly the crosshairs) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7757 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index a6b98684..cace08b9 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -792,6 +792,12 @@ void DrawQ_Pic(float x, float y, cachepic_t *pic, float width, float height, flo R_Mesh_TexBind(0, R_GetTexture(pic->tex)); R_Mesh_TexCoordPointer(0, 2, floats + 12, 0, 0); +#if 1 + floats[12] = 0.0f;floats[13] = 0.0f; + floats[14] = 1.0f;floats[15] = 0.0f; + floats[16] = 1.0f;floats[17] = 1.0f; + floats[18] = 0.0f;floats[19] = 1.0f; +#else // AK07: lets be texel correct on the corners { float horz_offset = 0.5f / pic->width; @@ -802,6 +808,7 @@ void DrawQ_Pic(float x, float y, cachepic_t *pic, float width, float height, flo floats[16] = 1.0f - horz_offset;floats[17] = 1.0f - vert_offset; floats[18] = 0.0f + horz_offset;floats[19] = 1.0f - vert_offset; } +#endif } floats[2] = floats[5] = floats[8] = floats[11] = 0;