X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fdraw.qh;h=82ae7c58dde6383faf684a1796d17a0a5f49215b;hb=7e3389f1cf2b461a0f050da3e32dee0b894e2d4c;hp=2bf480a8782aed99c16167731c5f38efd1300fcd;hpb=67410278136b3bf6c5437027ab2f39d0da49753c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/draw.qh b/qcsrc/lib/draw.qh index 2bf480a87..82ae7c58d 100644 --- a/qcsrc/lib/draw.qh +++ b/qcsrc/lib/draw.qh @@ -5,7 +5,8 @@ #include "i18n.qh" #include "vector.qh" - float vid_conwidth; + noref float vid_conwidth; + noref float vid_conheight; void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg) { @@ -26,7 +27,7 @@ C = to + thickdir * (thickness / 2); D = to - thickdir * (thickness / 2); - R_BeginPolygon(texture, drawflag); + R_BeginPolygon(texture, drawflag, false); R_PolygonVertex(A, '0 0 0' + shift * '1 0 0', rgb, theAlpha); R_PolygonVertex(B, '0 1 0' + shift * '1 0 0', rgb, theAlpha); R_PolygonVertex(C, '0 1 0' + (shift + length_tex) * '1 0 0', rgb, theAlpha);