From: Timothy Arceri Date: Wed, 28 Jun 2017 03:47:42 +0000 (+1000) Subject: mesa: add KHR_no_error support for glLogicOp() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e77fceedbd2b030906bacc7c524a77997ae11a1;p=mesa.git mesa: add KHR_no_error support for glLogicOp() Reviewed-by: Samuel Pitoiset --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index a63fd3c918f..b49ea916432 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2551,7 +2551,7 @@ - + diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index 541c24852d5..3fa9678730d 100644 --- a/src/mesa/main/blend.c +++ b/src/mesa/main/blend.c @@ -815,6 +815,14 @@ _mesa_LogicOp( GLenum opcode ) } +void GLAPIENTRY +_mesa_LogicOp_no_error(GLenum opcode) +{ + GET_CURRENT_CONTEXT(ctx); + logic_op(ctx, opcode); +} + + void GLAPIENTRY _mesa_IndexMask( GLuint mask ) { diff --git a/src/mesa/main/blend.h b/src/mesa/main/blend.h index 675e50d3886..b0a8cbd200b 100644 --- a/src/mesa/main/blend.h +++ b/src/mesa/main/blend.h @@ -97,6 +97,10 @@ extern void GLAPIENTRY _mesa_LogicOp( GLenum opcode ); +extern void GLAPIENTRY +_mesa_LogicOp_no_error(GLenum opcode); + + extern void GLAPIENTRY _mesa_IndexMask( GLuint mask );