Support MIN/MAX blend on OpenGL + ES

This commit is contained in:
ds-sloth 2023-01-22 12:27:52 -05:00 committed by Sam Lantinga
parent b1f365374b
commit 38697e832a

View file

@ -374,6 +374,10 @@ static GLenum GetBlendEquation(SDL_BlendOperation operation)
return GL_FUNC_SUBTRACT;
case SDL_BLENDOPERATION_REV_SUBTRACT:
return GL_FUNC_REVERSE_SUBTRACT;
case SDL_BLENDOPERATION_MINIMUM:
return GL_MIN;
case SDL_BLENDOPERATION_MAXIMUM:
return GL_MAX;
default:
return GL_INVALID_ENUM;
}