Raspberry Pi 3 (B+) sample execution error

Hey,

is the recent experimental OGL driver by any chance activated? This post has more info if that is the case but long story short you should be able to revert back to the original driver through raspi-config. This was on Jessie but maybe the same applies in your case.

HTH,
Petros