mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-05 22:46:06 +00:00
GLX: Changes resulting from changes to Mesa generator scripts / data
Several recent Mesa commits (listed below) make modifications to the
protocol generator data and scripts. This commit represents the
changes to the generated files resulting from the previous changes.
- 0f73302d24f4201813da2939742c5bcb6964b3b1
GLX: Fix protocol for glTexSubImage#D
- 1709ab01ef24279c782e420568e9257b4b92b224
Return 0 as the request size when the pixels parameter is NULL
- 63cca2ba10ce7dcc8481cfa4be3872dfc269dded
GLX: Include glapi.h before glapitable.h
This is the server-side part of the fix for bugzilla #11003.
This commit is contained in:
parent
6383bc93b2
commit
f1c9b5ab23
7 changed files with 28 additions and 18 deletions
|
|
@ -36,8 +36,8 @@
|
|||
#include "glxbyteorder.h"
|
||||
#include "indirect_util.h"
|
||||
#include "singlesize.h"
|
||||
#include "glapitable.h"
|
||||
#include "glapi.h"
|
||||
#include "glapitable.h"
|
||||
#include "glthread.h"
|
||||
#include "dispatch.h"
|
||||
|
||||
|
|
@ -2972,8 +2972,7 @@ void __glXDisp_PrioritizeTextures(GLbyte * pc)
|
|||
|
||||
void __glXDisp_TexSubImage1D(GLbyte * pc)
|
||||
{
|
||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 52);
|
||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 56);
|
||||
const GLvoid * const pixels = (const GLvoid *) (pc + 56);
|
||||
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
||||
|
||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||
|
|
@ -2996,8 +2995,7 @@ void __glXDisp_TexSubImage1D(GLbyte * pc)
|
|||
|
||||
void __glXDisp_TexSubImage2D(GLbyte * pc)
|
||||
{
|
||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 52);
|
||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 56);
|
||||
const GLvoid * const pixels = (const GLvoid *) (pc + 56);
|
||||
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
||||
|
||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||
|
|
@ -3773,8 +3771,7 @@ void __glXDisp_TexImage3D(GLbyte * pc)
|
|||
|
||||
void __glXDisp_TexSubImage3D(GLbyte * pc)
|
||||
{
|
||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 84);
|
||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 88);
|
||||
const GLvoid * const pixels = (const GLvoid *) (pc + 88);
|
||||
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
||||
|
||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue