mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
fixed the GL3 debug uniform location check
it would incorrectly trigger with r_alphaToCoverage 1 and r_msaa 0
This commit is contained in:
parent
633c5bd13c
commit
2aaf17b061
1 changed files with 4 additions and 3 deletions
|
@ -1986,11 +1986,12 @@ static void Init()
|
|||
{
|
||||
pipeline->uniformLocations[i] = glGetUniformLocation(pipeline->program.program, pipeline->uniformNames[i]);
|
||||
#if defined(_DEBUG)
|
||||
if(!(r_dither->integer == 0 && p == PID_GENERIC && i == GU_GAMMA_BRIGHT_NOISE_SEED) &&
|
||||
!(r_alphaToCoverage->integer == 0 && p == PID_GENERIC && i == GU_A2C_ALPHA_BOOST))
|
||||
if((p == PID_GENERIC && i == GU_GAMMA_BRIGHT_NOISE_SEED && r_dither->integer == 0) ||
|
||||
(p == PID_GENERIC && i == GU_A2C_ALPHA_BOOST && !glInfo.alphaToCoverageSupport))
|
||||
{
|
||||
assert(pipeline->uniformLocations[i] != -1);
|
||||
continue;
|
||||
}
|
||||
assert(pipeline->uniformLocations[i] != -1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue