amonakov / primus

Low-overhead client-side GPU offloading
ISC License
216 stars 20 forks source link

liglfork.cpp: Fix for #201 #203

Closed ribalda closed 6 years ago

ribalda commented 6 years ago

Without this patch current mesa crases during upload_mode detection.

Signed-off-by: Ricardo Ribalda Delgado ricardo.ribalda@gmail.com

amonakov commented 6 years ago

The patch is wrong: when a pixel unpack buffer is bound, the last argument to glDrawPixels gives the offset from the buffer start, not the pointer to the buffer. So we really do want 0 there.

This looks like a regression happened on Mesa/Xorg side and should be addressed there.