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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user