[Mesa-dev] [RFC 17/63] mesa/main: Added empty skeleton of glGetInternalformati64v

Eduardo Lima Mitev elima at igalia.com
Tue Jan 19 08:41:57 PST 2016


From: Antia Puentes <apuentes at igalia.com>

---
 src/mesa/main/formatquery.c | 16 ++++++++++++++++
 src/mesa/main/formatquery.h |  4 ++++
 2 files changed, 20 insertions(+)

diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 8d0cded..f9795ae 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -833,3 +833,19 @@ _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
 
    return;
 }
+
+void GLAPIENTRY
+_mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
+                            GLenum pname, GLsizei bufSize, GLint64 *params)
+{
+   GET_CURRENT_CONTEXT(ctx);
+
+   ASSERT_OUTSIDE_BEGIN_END(ctx);
+
+   if (!ctx->Extensions.ARB_internalformat_query2) {
+      _mesa_error(ctx, GL_INVALID_OPERATION, "glGetInternalformati64v");
+      return;
+   }
+
+   _mesa_debug(ctx, "glGetInternalformati64v() not implemented");
+}
diff --git a/src/mesa/main/formatquery.h b/src/mesa/main/formatquery.h
index b42299e..1061fd2 100644
--- a/src/mesa/main/formatquery.h
+++ b/src/mesa/main/formatquery.h
@@ -41,4 +41,8 @@ extern void GLAPIENTRY
 _mesa_GetInternalformativ(GLenum target, GLenum internalformat,
                           GLenum pname, GLsizei bufSize, GLint *params);
 
+extern void GLAPIENTRY
+_mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
+                            GLenum pname, GLsizei bufSize, GLint64 *params);
+
 #endif /* FORMATQUERY_H */
-- 
2.5.3



More information about the mesa-dev mailing list