mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
mesa: add KHR_no_error support to glShaderSource()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
29f84556ca
commit
fcd8ab6e86
3 changed files with 14 additions and 1 deletions
|
|
@ -5497,7 +5497,7 @@
|
|||
<glx ignore="true"/>
|
||||
</function>
|
||||
|
||||
<function name="ShaderSource" es2="2.0" marshal="custom">
|
||||
<function name="ShaderSource" es2="2.0" marshal="custom" no_error="true">
|
||||
<param name="shader" type="GLuint"/>
|
||||
<param name="count" type="GLsizei"/>
|
||||
<param name="string" type="const GLchar * const *"/>
|
||||
|
|
|
|||
|
|
@ -1903,6 +1903,15 @@ shader_source(struct gl_context *ctx, GLuint shaderObj, GLsizei count,
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderSource_no_error(GLuint shaderObj, GLsizei count,
|
||||
const GLchar *const *string, const GLint *length)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
shader_source(ctx, shaderObj, count, string, length, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderSource(GLuint shaderObj, GLsizei count,
|
||||
const GLchar *const *string, const GLint *length)
|
||||
|
|
|
|||
|
|
@ -134,6 +134,10 @@ _mesa_IsShader(GLuint name);
|
|||
extern void GLAPIENTRY
|
||||
_mesa_LinkProgram(GLuint programObj);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_ShaderSource_no_error(GLuint, GLsizei, const GLchar* const *,
|
||||
const GLint *);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_ShaderSource(GLuint, GLsizei, const GLchar* const *, const GLint *);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue