From c88649246f85415073cc8fd922ab039a067c89ee Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 18 Jul 2017 18:02:51 +0200 Subject: mesa: add KHR_no_error support to glInvalidate*() These are just no-op because we don't actually do anything useful in the errors path. Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/texobj.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/mesa/main/texobj.c') diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index e52ad22645b..95f2b34337d 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -2028,6 +2028,16 @@ _mesa_unlock_context_textures( struct gl_context *ctx ) } +void GLAPIENTRY +_mesa_InvalidateTexSubImage_no_error(GLuint texture, GLint level, GLint xoffset, + GLint yoffset, GLint zoffset, + GLsizei width, GLsizei height, + GLsizei depth) +{ + /* no-op */ +} + + void GLAPIENTRY _mesa_InvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, @@ -2175,6 +2185,13 @@ _mesa_InvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, } +void GLAPIENTRY +_mesa_InvalidateTexImage_no_error(GLuint texture, GLint level) +{ + /* no-op */ +} + + void GLAPIENTRY _mesa_InvalidateTexImage(GLuint texture, GLint level) { -- cgit v1.2.3