summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2013-07-11 23:13:37 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2013-09-16 15:57:23 +0000
commit22351155721dcb8eb52cc1f6b8b6551a1d24c576 (patch)
treefe4182ef7aad97375bdd9a8d747d5b96d644c718
parent8d7ecdc5f4647f38f065cac39f861584e10f0db2 (diff)
mesa: implement GetNamedFramebufferAttachmentParameterivEXT entrypoint
-rw-r--r--src/mesa/main/fbobject.c17
-rw-r--r--src/mesa/main/fbobject.h3
2 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index e1d0f1e8a0..4026997890 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -3172,6 +3172,23 @@ _mesa_GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment,
}
+void GLAPIENTRY
+_mesa_GetNamedFramebufferAttachmentParameterivEXT(GLuint framebuffer,
+ GLenum attachment, GLenum pname, GLint *params)
+{
+ struct gl_framebuffer *fb;
+ GET_CURRENT_CONTEXT(ctx);
+
+ fb = get_and_init_fbo(ctx, framebuffer,
+ "glGetNamedFramebufferAttachmentParameterivEXT", false);
+ if (!fb)
+ return;
+
+ get_fbo_attachment_param(ctx, fb, attachment, pname, params,
+ "glGetNamedFramebufferAttachmentParameterivEXT");
+}
+
+
static GLboolean
valid_mipmap_texture(struct gl_context *ctx, GLenum target, const char *func)
{
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h
index 70c52093ea..5c4205461c 100644
--- a/src/mesa/main/fbobject.h
+++ b/src/mesa/main/fbobject.h
@@ -249,6 +249,9 @@ void GLAPIENTRY
_mesa_NamedFramebufferRenderbufferEXT(GLuint framebuffer, GLenum attachment,
GLenum renderbufferTarget,
GLuint renderbuffer);
+void GLAPIENTRY
+_mesa_GetNamedFramebufferAttachmentParameterivEXT(GLuint framebuffer,
+ GLenum attachment, GLenum pname, GLint *params);
#endif /* FBOBJECT_H */