mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-22 20:11:43 +00:00
re-enabled the r_ignoreShaderSortKey 0 debug validation code
This commit is contained in:
parent
8587c34719
commit
a7dc8e4721
1 changed files with 5 additions and 3 deletions
|
@ -1519,12 +1519,14 @@ static void R_SortDrawSurfs( int firstDrawSurf, int firstLitSurf )
|
|||
const sortFunc_t transpSort = r_ignoreShaderSortKey->integer ? &R_CompareDrawSurfNoKey : &R_CompareDrawSurf;
|
||||
qsort( drawSurfs + numDrawSurfs - numTranspSurfs, numTranspSurfs, sizeof(drawSurf_t), transpSort );
|
||||
|
||||
#if 0
|
||||
#if defined(_DEBUG)
|
||||
if ( r_ignoreShaderSortKey->integer == 0 ) {
|
||||
// all surfaces must be in sort order except the sky
|
||||
// because we draw it after all the other opaque surfaces
|
||||
float prevSort = -1.0f;
|
||||
for ( int i = 0; i < numDrawSurfs; ++i ) {
|
||||
R_DecomposeSort( (drawSurfs + i)->sort, &entityNum, &shader, &fogNum );
|
||||
assert( shader->sort >= prevSort );
|
||||
R_DecomposeSort( (drawSurfs + i)->sort, &entityNum, &shader );
|
||||
Q_assert( shader->isSky || shader->sort >= prevSort );
|
||||
prevSort = shader->sort;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue