Skip to content

glthread: use id 0 for internal buffer objects

Mike Blumenkrantz requested to merge zmike/mesa:bufferid into main

-1 is an invalid buffer index which breaks app expectations, specifically apitrace, which checks for return value of 0 from checking buffer bindings to determine whether to inject user vertex buffer bindings and create functional traces

this should fix capturing traces with drivers using glthread

fixes #8383 (closed)

cc: mesa-stable

Merge request reports