mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
glx: replace __GLX_SWAP_INT() by swapl()
We have an optimized function for this, so use it.
This commit is contained in:
committed by
Enrico Weigelt
parent
d438dfc677
commit
c339338277
@@ -328,7 +328,6 @@ DoGetString(__GLXclientState * cl, GLbyte * pc, GLboolean need_swap)
|
||||
GLenum name;
|
||||
const char *string;
|
||||
|
||||
__GLX_DECLARE_SWAP_VARIABLES;
|
||||
int error;
|
||||
char *buf = NULL, *buf1 = NULL;
|
||||
GLint length = 0;
|
||||
@@ -339,8 +338,8 @@ DoGetString(__GLXclientState * cl, GLbyte * pc, GLboolean need_swap)
|
||||
* the name.
|
||||
*/
|
||||
if (need_swap) {
|
||||
__GLX_SWAP_INT(pc + 4);
|
||||
__GLX_SWAP_INT(pc + __GLX_SINGLE_HDR_SIZE);
|
||||
swapl((CARD32*)(pc + 4));
|
||||
swapl((CARD32*)(pc + __GLX_SINGLE_HDR_SIZE));
|
||||
}
|
||||
|
||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
||||
|
||||
Reference in New Issue
Block a user