diff --git a/src/engine/renderer/tr_backend.cpp b/src/engine/renderer/tr_backend.cpp index 1a4cbf404c..d3160c0a85 100644 --- a/src/engine/renderer/tr_backend.cpp +++ b/src/engine/renderer/tr_backend.cpp @@ -5096,28 +5096,28 @@ const RenderCommand *StretchPicCommand::ExecuteSelf( ) const tess.verts[ numVerts ].f16TexCoords[ 0 ] = floatToHalf( s1 ); tess.verts[ numVerts ].f16TexCoords[ 1 ] = floatToHalf( t1 ); - tess.verts[ numVerts + 1 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); + tess.verts[ numVerts + 1 ].f16TexCoords[ 0 ] = floatToHalf( s2 ); tess.verts[ numVerts + 1 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); - tess.verts[ numVerts + 2 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts + 2 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts + 2 ].f16TexCoords[ 0 ] = floatToHalf( s2 ); + tess.verts[ numVerts + 2 ].f16TexCoords[ 1 ] = floatToHalf( t2 ); tess.verts[ numVerts + 3 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts + 3 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts + 3 ].f16TexCoords[ 1 ] = floatToHalf( t2 ); } else { tess.verts[ numVerts ].texCoords[ 0 ] = s1; tess.verts[ numVerts ].texCoords[ 1 ] = t1; - tess.verts[ numVerts + 1 ].texCoords[ 0 ] = s1; + tess.verts[ numVerts + 1 ].texCoords[ 0 ] = s2; tess.verts[ numVerts + 1 ].texCoords[ 1 ] = t1; - tess.verts[ numVerts + 2 ].texCoords[ 0 ] = s1; - tess.verts[ numVerts + 2 ].texCoords[ 1 ] = t1; + tess.verts[ numVerts + 2 ].texCoords[ 0 ] = s2; + tess.verts[ numVerts + 2 ].texCoords[ 1 ] = t2; tess.verts[ numVerts + 3 ].texCoords[ 0 ] = s1; - tess.verts[ numVerts + 3 ].texCoords[ 1 ] = t1; + tess.verts[ numVerts + 3 ].texCoords[ 1 ] = t2; } tess.attribsSet |= ATTR_POSITION | ATTR_COLOR | ATTR_TEXCOORD; @@ -5373,28 +5373,28 @@ const RenderCommand *RotatedPicCommand::ExecuteSelf( ) const tess.verts[ numVerts ].f16TexCoords[ 0 ] = floatToHalf( s1 ); tess.verts[ numVerts ].f16TexCoords[ 1 ] = floatToHalf( t1 ); - tess.verts[ numVerts + 1 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); + tess.verts[ numVerts + 1 ].f16TexCoords[ 0 ] = floatToHalf( s2 ); tess.verts[ numVerts + 1 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); - tess.verts[ numVerts + 2 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts + 2 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts + 2 ].f16TexCoords[ 0 ] = floatToHalf( s2 ); + tess.verts[ numVerts + 2 ].f16TexCoords[ 1 ] = floatToHalf( t2 ); tess.verts[ numVerts + 3 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts + 3 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts + 3 ].f16TexCoords[ 1 ] = floatToHalf( t2 ); } else { tess.verts[ numVerts ].texCoords[ 0 ] = s1; tess.verts[ numVerts ].texCoords[ 1 ] = t1; - tess.verts[ numVerts + 1 ].texCoords[ 0 ] = s1; + tess.verts[ numVerts + 1 ].texCoords[ 0 ] = s2; tess.verts[ numVerts + 1 ].texCoords[ 1 ] = t1; - tess.verts[ numVerts + 2 ].texCoords[ 0 ] = s1; - tess.verts[ numVerts + 2 ].texCoords[ 1 ] = t1; + tess.verts[ numVerts + 2 ].texCoords[ 0 ] = s2; + tess.verts[ numVerts + 2 ].texCoords[ 1 ] = t2; tess.verts[ numVerts + 3 ].texCoords[ 0 ] = s1; - tess.verts[ numVerts + 3 ].texCoords[ 1 ] = t1; + tess.verts[ numVerts + 3 ].texCoords[ 1 ] = t2; } tess.attribsSet |= ATTR_POSITION | ATTR_TEXCOORD | ATTR_COLOR; @@ -5471,30 +5471,30 @@ const RenderCommand *GradientPicCommand::ExecuteSelf( ) const if ( glConfig2.halfFloatVertexAvailable ) { tess.verts[ numVerts ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts ].f16TexCoords[ 1 ] = floatToHalf( t2 ); - tess.verts[ numVerts + 1 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); + tess.verts[ numVerts + 1 ].f16TexCoords[ 0 ] = floatToHalf( s2 ); tess.verts[ numVerts + 1 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); - tess.verts[ numVerts + 2 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts + 2 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts + 2 ].f16TexCoords[ 0 ] = floatToHalf( s2 ); + tess.verts[ numVerts + 2 ].f16TexCoords[ 1 ] = floatToHalf( t2 ); tess.verts[ numVerts + 3 ].f16TexCoords[ 0 ] = floatToHalf( s1 ); - tess.verts[ numVerts + 3 ].f16TexCoords[ 1 ] = floatToHalf( t1 ); + tess.verts[ numVerts + 3 ].f16TexCoords[ 1 ] = floatToHalf( t2 ); } else { tess.verts[ numVerts ].texCoords[ 0 ] = s1; - tess.verts[ numVerts ].texCoords[ 1 ] = t1; + tess.verts[ numVerts ].texCoords[ 1 ] = t2; - tess.verts[ numVerts + 1 ].texCoords[ 0 ] = s1; + tess.verts[ numVerts + 1 ].texCoords[ 0 ] = s2; tess.verts[ numVerts + 1 ].texCoords[ 1 ] = t1; - tess.verts[ numVerts + 2 ].texCoords[ 0 ] = s1; - tess.verts[ numVerts + 2 ].texCoords[ 1 ] = t1; + tess.verts[ numVerts + 2 ].texCoords[ 0 ] = s2; + tess.verts[ numVerts + 2 ].texCoords[ 1 ] = t2; tess.verts[ numVerts + 3 ].texCoords[ 0 ] = s1; - tess.verts[ numVerts + 3 ].texCoords[ 1 ] = t1; + tess.verts[ numVerts + 3 ].texCoords[ 1 ] = t2; } tess.attribsSet |= ATTR_POSITION | ATTR_TEXCOORD | ATTR_COLOR;