Dual source blend: Remove bad #ifdef that killed dual src code on Android... oops. Re-enable on nVidia Shield TV/Tablet. Fixes #10136 properly.

This commit is contained in:
Henrik Rydgård 2017-12-30 00:09:06 +01:00
parent 2498ce5e3e
commit 2dda2bfa78
3 changed files with 2 additions and 15 deletions

View file

@ -784,12 +784,10 @@ static const BlendEq eqLookup[] = {
static BlendFactor toDualSource(BlendFactor blendfunc) {
switch (blendfunc) {
#if !defined(USING_GLES2) // TODO: Remove when we have better headers
case BlendFactor::SRC_ALPHA:
return BlendFactor::SRC1_ALPHA;
case BlendFactor::ONE_MINUS_SRC_ALPHA:
return BlendFactor::ONE_MINUS_SRC1_ALPHA;
#endif
default:
return blendfunc;
}