Using mesa instead of OpenGL should not be a problem. Would you please describe for us what is wrong with the distorted/corrupted images you are seeing when using the -mesa flag? Or, if you coudl perhaps send us a sample?
Also, woudl youi pleaes tell us the reason for using the -mesa flag if using OpenGL works fine for you?
Tech Support Lead