From b5d27bc5ddb9f30153e02f4ae1096c8d6eda3df5 Mon Sep 17 00:00:00 2001 From: Antia Puentes Date: Tue, 17 Nov 2015 18:02:12 +0100 Subject: [PATCH] mesa/main: Added empty skeleton of glGetInternalformati64v Reviewed-by: Dave Airlie --- 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 1c6be11d724..0b19bc7da04 100644 --- a/src/mesa/main/formatquery.c +++ b/src/mesa/main/formatquery.c @@ -834,3 +834,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 (!_mesa_has_ARB_internalformat_query2(ctx)) { + _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 b42299e3128..1061fd26753 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.30.2