mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
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 <airlied@redhat.com>
This commit is contained in:
parent
7241e1b5f4
commit
580816b747
1 changed files with 7 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue