Skip to content

Commit

Permalink
fIx dA sTuPiD mIsTaKe
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jun 11, 2024
1 parent 2b12621 commit 38c78e7
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/engine/renderer/tr_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 38c78e7

Please sign in to comment.