mesa: add KHR_no_error support to glRead*Pixels*()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
<param name="img" type="GLvoid *" output="true"/>
|
||||
</function>
|
||||
|
||||
<function name="ReadnPixelsARB">
|
||||
<function name="ReadnPixelsARB" no_error="true">
|
||||
<param name="x" type="GLint"/>
|
||||
<param name="y" type="GLint"/>
|
||||
<param name="width" type="GLsizei"/>
|
||||
|
||||
@@ -2640,7 +2640,7 @@
|
||||
<glx rop="172"/>
|
||||
</function>
|
||||
|
||||
<function name="ReadPixels" es1="1.0" es2="2.0">
|
||||
<function name="ReadPixels" es1="1.0" es2="2.0" no_error="true">
|
||||
<param name="x" type="GLint"/>
|
||||
<param name="y" type="GLint"/>
|
||||
<param name="width" type="GLsizei"/>
|
||||
|
||||
@@ -1125,6 +1125,14 @@ read_pixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
|
||||
format, type, &clippedPacking, pixels);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ReadnPixelsARB_no_error(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLsizei bufSize,
|
||||
GLvoid *pixels)
|
||||
{
|
||||
read_pixels(x, y, width, height, format, type, bufSize, pixels, true);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLsizei bufSize,
|
||||
@@ -1133,6 +1141,14 @@ _mesa_ReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
read_pixels(x, y, width, height, format, type, bufSize, pixels, false);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ReadPixels_no_error(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLvoid *pixels)
|
||||
{
|
||||
_mesa_ReadnPixelsARB_no_error(x, y, width, height, format, type, INT_MAX,
|
||||
pixels);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLvoid *pixels)
|
||||
|
||||
@@ -58,10 +58,19 @@ _mesa_readpixels(struct gl_context *ctx,
|
||||
const struct gl_pixelstore_attrib *packing,
|
||||
GLvoid *pixels);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ReadPixels_no_error(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLvoid *pixels);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_ReadPixels( GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLvoid *pixels );
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ReadnPixelsARB_no_error(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLsizei bufSize,
|
||||
GLvoid *pixels);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_ReadnPixelsARB( GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type, GLsizei bufSize,
|
||||
|
||||
Reference in New Issue
Block a user