mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-06 22:55:10 +00:00
Regenerate from gl_API.xml 1.63. Enable extensions.
gl_API.xml 1.63 corrects some problems with GLX protocol for GL_EXT_paletted_texture and GL_SGI_color_table. Regenerate from that file, and enable those extensions and GL_EXT_shared_texture_palette.
This commit is contained in:
parent
7d5de5c665
commit
2c865277fe
5 changed files with 220 additions and 58 deletions
|
|
@ -4414,6 +4414,64 @@ void __glXDisp_DrawBuffersARB(GLbyte * pc)
|
|||
) );
|
||||
}
|
||||
|
||||
int __glXDisp_GetColorTableParameterfvSGI(__GLXclientState *cl, GLbyte *pc)
|
||||
{
|
||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||
int error;
|
||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||
|
||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||
if ( cx != NULL ) {
|
||||
const GLenum pname = *(GLenum *)(pc + 4);
|
||||
|
||||
const GLuint compsize = __glGetColorTableParameterfvSGI_size(pname);
|
||||
GLfloat answerBuffer[200];
|
||||
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||
|
||||
if (params == NULL) return BadAlloc;
|
||||
__glXClearErrorOccured();
|
||||
|
||||
CALL_GetColorTableParameterfvSGI( GET_DISPATCH(), (
|
||||
*(GLenum *)(pc + 0),
|
||||
pname,
|
||||
params
|
||||
) );
|
||||
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||
error = Success;
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
int __glXDisp_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc)
|
||||
{
|
||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||
int error;
|
||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||
|
||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||
if ( cx != NULL ) {
|
||||
const GLenum pname = *(GLenum *)(pc + 4);
|
||||
|
||||
const GLuint compsize = __glGetColorTableParameterivSGI_size(pname);
|
||||
GLint answerBuffer[200];
|
||||
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||
|
||||
if (params == NULL) return BadAlloc;
|
||||
__glXClearErrorOccured();
|
||||
|
||||
CALL_GetColorTableParameterivSGI( GET_DISPATCH(), (
|
||||
*(GLenum *)(pc + 0),
|
||||
pname,
|
||||
params
|
||||
) );
|
||||
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||
error = Success;
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
int __glXDisp_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc)
|
||||
{
|
||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue