mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
mesa: implement glFramebufferTexture
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
5da8288911
commit
02f2bce08d
3 changed files with 21 additions and 1 deletions
|
|
@ -607,7 +607,7 @@
|
|||
<param name="params" type="GLint64 *"/>
|
||||
</function>
|
||||
|
||||
<function name="FramebufferTexture" offset="assign" exec="skip">
|
||||
<function name="FramebufferTexture" offset="assign">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="attachment" type="GLenum"/>
|
||||
<param name="texture" type="GLuint"/>
|
||||
|
|
|
|||
|
|
@ -2402,6 +2402,22 @@ _mesa_FramebufferTextureLayer(GLenum target, GLenum attachment,
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_FramebufferTexture(GLenum target, GLenum attachment,
|
||||
GLuint texture, GLint level)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (ctx->Version >= 32 || ctx->Extensions.ARB_geometry_shader4) {
|
||||
framebuffer_texture(ctx, "Layer", target, attachment, 0, texture,
|
||||
level, 0, GL_TRUE);
|
||||
} else {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"unsupported function (glFramebufferTexture) called");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_FramebufferRenderbuffer(GLenum target, GLenum attachment,
|
||||
GLenum renderbufferTarget,
|
||||
|
|
|
|||
|
|
@ -192,6 +192,10 @@ extern void GLAPIENTRY
|
|||
_mesa_FramebufferTextureLayer(GLenum target, GLenum attachment,
|
||||
GLuint texture, GLint level, GLint layer);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_FramebufferTexture(GLenum target, GLenum attachment,
|
||||
GLuint texture, GLint level);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_FramebufferRenderbuffer(GLenum target, GLenum attachment,
|
||||
GLenum renderbuffertarget,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue