diff options
author | Timothy Arceri <[email protected]> | 2017-05-15 10:41:23 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-17 10:12:04 +1000 |
commit | 5c8252ba6f7e43c563b7011facbbe4ef013e76c6 (patch) | |
tree | fd1a96b9691dd56d3a2aa3fa053215608f04503b /src/mesa/main | |
parent | b5c67f469a5e8b406c12c529399d631a887700ee (diff) |
mesa: add KHR_no_error support for glBlendFunc*iARB()
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/blend.c | 18 | ||||
-rw-r--r-- | src/mesa/main/blend.h | 6 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index ed519bcc0e0..8811ef9a339 100644 --- a/src/mesa/main/blend.c +++ b/src/mesa/main/blend.c @@ -282,6 +282,14 @@ _mesa_BlendFuncSeparate( GLenum sfactorRGB, GLenum dfactorRGB, } +void GLAPIENTRY +_mesa_BlendFunciARB_no_error(GLuint buf, GLenum sfactor, GLenum dfactor) +{ + _mesa_BlendFuncSeparateiARB_no_error(buf, sfactor, dfactor, sfactor, + dfactor); +} + + /** * Set blend source/dest factors for one color buffer/target. */ @@ -334,6 +342,16 @@ blend_func_separatei(GLuint buf, GLenum sfactorRGB, GLenum dfactorRGB, } +void GLAPIENTRY +_mesa_BlendFuncSeparateiARB_no_error(GLuint buf, GLenum sfactorRGB, + GLenum dfactorRGB, GLenum sfactorA, + GLenum dfactorA) +{ + blend_func_separatei(buf, sfactorRGB, dfactorRGB, sfactorA, dfactorA, + true); +} + + /** * Set separate blend source/dest factors for one color buffer/target. */ diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h index 8ab9e02fc13..199345df600 100644 --- a/src/mesa/main/blend.h +++ b/src/mesa/main/blend.h @@ -50,10 +50,16 @@ _mesa_BlendFuncSeparate( GLenum sfactorRGB, GLenum dfactorRGB, extern void GLAPIENTRY +_mesa_BlendFunciARB_no_error(GLuint buf, GLenum sfactor, GLenum dfactor); +extern void GLAPIENTRY _mesa_BlendFunciARB(GLuint buf, GLenum sfactor, GLenum dfactor); extern void GLAPIENTRY +_mesa_BlendFuncSeparateiARB_no_error(GLuint buf, GLenum sfactorRGB, + GLenum dfactorRGB, GLenum sfactorA, + GLenum dfactorA); +extern void GLAPIENTRY _mesa_BlendFuncSeparateiARB(GLuint buf, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorA, GLenum dfactorA); |