(!1665) glx: DoQueryContext(): use core's swapping macros
No need to have duplicated byte swapping macros in GLX for things that the core alreay provides. Using core's macros is actually even easier. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
		
							parent
							
								
									a434e0f307
								
							
						
					
					
						commit
						83989edfd1
					
				|  | @ -1684,12 +1684,10 @@ DoQueryContext(__GLXclientState * cl, GLXContextID gcId) | ||||||
|     sendBuf[9] = (int) (ctx->renderType); |     sendBuf[9] = (int) (ctx->renderType); | ||||||
| 
 | 
 | ||||||
|     if (client->swapped) { |     if (client->swapped) { | ||||||
|         __GLX_DECLARE_SWAP_VARIABLES; |         swaps(&reply.sequenceNumber); | ||||||
|         __GLX_DECLARE_SWAP_ARRAY_VARIABLES; |         swapl(&reply.length); | ||||||
|         __GLX_SWAP_SHORT(&reply.sequenceNumber); |         swapl(&reply.n); | ||||||
|         __GLX_SWAP_INT(&reply.length); |         SwapLongs(sendBuf, sizeof(sendBuf) / 4); | ||||||
|         __GLX_SWAP_INT(&reply.n); |  | ||||||
|         __GLX_SWAP_INT_ARRAY(sendBuf, sizeof(sendBuf) / sizeof(CARD32)); |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); |     WriteToClient(client, sizeof(xGLXQueryContextInfoEXTReply), &reply); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue