summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorAlejandro PiƱeiro <[email protected]>2015-11-19 11:37:37 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:06 +0100
commit580816b74723af481dd85c845caca8aa41274ed5 (patch)
tree77c79771d71acb9e11a22aafa9ddb72dd56e03dc /src/mesa/main
parent7241e1b5f4b9882425517b3d0131114119a7fdc6 (diff)
mesa/formatquery: initial implementation for GetInternalformati64v
It just does a wrapping on the existing 32-bit GetInternalformativ. We will maintain the 32-bit query as default as it is likely that it would be the one most used. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/formatquery.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 0beb1a7905a..14afe6fcf02 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -1023,6 +1023,9 @@ void GLAPIENTRY
_mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
GLenum pname, GLsizei bufSize, GLint64 *params)
{
+ GLint params32[16];
+ unsigned i;
+
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
@@ -1032,5 +1035,8 @@ _mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
return;
}
- _mesa_debug(ctx, "glGetInternalformati64v() not implemented");
+ _mesa_GetInternalformativ(target, internalformat, pname, bufSize, params32);
+
+ for (i = 0; i < bufSize; i++)
+ params[i] = params32[i];
}