diff options
author | Timothy Arceri <[email protected]> | 2017-06-28 13:32:35 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-06-29 08:54:10 +1000 |
commit | 774580c8b9ae6a2def64f63163c71179fd55a624 (patch) | |
tree | 40c184bee31862c50b99451dbc8d51de7bb05be1 /src/mesa/main/pixelstore.c | |
parent | 9853ca6037b92d176ea35dc0d213b66c25392dc0 (diff) |
mesa: add KHR_no_error support for glPixelStore*()
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/main/pixelstore.c')
-rw-r--r-- | src/mesa/main/pixelstore.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/pixelstore.c b/src/mesa/main/pixelstore.c index 38e60723ca4..4738f962135 100644 --- a/src/mesa/main/pixelstore.c +++ b/src/mesa/main/pixelstore.c @@ -238,6 +238,19 @@ _mesa_PixelStoref( GLenum pname, GLfloat param ) } +void GLAPIENTRY +_mesa_PixelStorei_no_error(GLenum pname, GLint param) +{ + pixel_storei(pname, param, true); +} + + +void GLAPIENTRY +_mesa_PixelStoref_no_error(GLenum pname, GLfloat param) +{ + _mesa_PixelStorei_no_error(pname, IROUND(param)); +} + /** * Initialize the context's pixel store state. |