mirror of https://github.com/libsdl-org/SDL
Support MIN/MAX blend on OpenGL + ES
This commit is contained in:
parent
b1f365374b
commit
38697e832a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue