dbe: fix byte swapping in SProcDbeSwapBuffers()
The loop forgot to move the SwapInfo pointer, so the same list entry gets swapped over and over again, while the remaining ones get ignored. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1822>
This commit is contained in:
		
							parent
							
								
									de0aed0543
								
							
						
					
					
						commit
						86244ff36f
					
				| 
						 | 
					@ -907,7 +907,7 @@ SProcDbeSwapBuffers(ClientPtr client)
 | 
				
			||||||
         * followed by a 1 byte swap action and then 3 pad bytes.  We only need
 | 
					         * followed by a 1 byte swap action and then 3 pad bytes.  We only need
 | 
				
			||||||
         * to swap the window information.
 | 
					         * to swap the window information.
 | 
				
			||||||
         */
 | 
					         */
 | 
				
			||||||
        for (i = 0; i < stuff->n; i++) {
 | 
					        for (i = 0; i < stuff->n; i++, pSwapInfo++) {
 | 
				
			||||||
            swapl(&pSwapInfo->window);
 | 
					            swapl(&pSwapInfo->window);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue