mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
mesa: add KHR_no_error support for glPixelStore*()
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
9853ca6037
commit
774580c8b9
3 changed files with 23 additions and 2 deletions
|
|
@ -2593,13 +2593,13 @@
|
|||
<glx rop="167"/>
|
||||
</function>
|
||||
|
||||
<function name="PixelStoref">
|
||||
<function name="PixelStoref" no_error="true">
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="param" type="GLfloat"/>
|
||||
<glx sop="109" handcode="client"/>
|
||||
</function>
|
||||
|
||||
<function name="PixelStorei" es1="1.0" es2="2.0">
|
||||
<function name="PixelStorei" es1="1.0" es2="2.0" no_error="true">
|
||||
<param name="pname" type="GLenum"/>
|
||||
<param name="param" type="GLint"/>
|
||||
<glx sop="110" handcode="client"/>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -45,6 +45,14 @@ extern void GLAPIENTRY
|
|||
_mesa_PixelStoref( GLenum pname, GLfloat param );
|
||||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_PixelStorei_no_error(GLenum pname, GLint param);
|
||||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_PixelStoref_no_error(GLenum pname, GLfloat param);
|
||||
|
||||
|
||||
extern void
|
||||
_mesa_init_pixelstore( struct gl_context *ctx );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue