]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
reverted texel nudging code that was committed by divverent and credited
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Dec 2007 10:49:24 +0000 (10:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Dec 2007 10:49:24 +0000 (10:49 +0000)
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

gl_draw.c

index a6b98684d2c3f2bfc2a342a957e2355d8c5e821e..cace08b905ea8d18c7b898aeb79744c8e33a5938 100644 (file)
--- 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;