mesa: add KHR_no_error support for NamedFramebufferTexture
V3: use frame_buffer_texture() helper Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -171,7 +171,7 @@
|
||||
<param name="param" type="GLint" />
|
||||
</function>
|
||||
|
||||
<function name="NamedFramebufferTexture">
|
||||
<function name="NamedFramebufferTexture" no_error="true">
|
||||
<param name="framebuffer" type="GLuint" />
|
||||
<param name="attachment" type="GLenum" />
|
||||
<param name="texture" type="GLuint" />
|
||||
|
||||
@@ -3571,6 +3571,14 @@ _mesa_FramebufferTexture(GLenum target, GLenum attachment,
|
||||
"glFramebufferTexture", false, false, true);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_NamedFramebufferTexture_no_error(GLuint framebuffer, GLenum attachment,
|
||||
GLuint texture, GLint level)
|
||||
{
|
||||
frame_buffer_texture(framebuffer, 0, attachment, texture, level, 0,
|
||||
"glNamedFramebufferTexture", true, true, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
|
||||
|
||||
@@ -265,6 +265,9 @@ _mesa_FramebufferTexture(GLenum target, GLenum attachment,
|
||||
GLuint texture, GLint level);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_NamedFramebufferTexture_no_error(GLuint framebuffer, GLenum attachment,
|
||||
GLuint texture, GLint level);
|
||||
extern void GLAPIENTRY
|
||||
_mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
|
||||
GLuint texture, GLint level);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user