Support MIN/MAX blend on OpenGL + ES
This commit is contained in:
parent
b1f365374b
commit
38697e832a
1 changed files with 4 additions and 0 deletions
|
@ -374,6 +374,10 @@ static GLenum GetBlendEquation(SDL_BlendOperation operation)
|
||||||
return GL_FUNC_SUBTRACT;
|
return GL_FUNC_SUBTRACT;
|
||||||
case SDL_BLENDOPERATION_REV_SUBTRACT:
|
case SDL_BLENDOPERATION_REV_SUBTRACT:
|
||||||
return GL_FUNC_REVERSE_SUBTRACT;
|
return GL_FUNC_REVERSE_SUBTRACT;
|
||||||
|
case SDL_BLENDOPERATION_MINIMUM:
|
||||||
|
return GL_MIN;
|
||||||
|
case SDL_BLENDOPERATION_MAXIMUM:
|
||||||
|
return GL_MAX;
|
||||||
default:
|
default:
|
||||||
return GL_INVALID_ENUM;
|
return GL_INVALID_ENUM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue