mesa/main/debug: Check if we successfully reopened the ppm file.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 5 Jun 2017 18:04:26 +0000 (11:04 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Fri, 9 Jun 2017 17:21:16 +0000 (10:21 -0700)
commitd42fc65bb3c8af6ed25baae17e6f2daec73338fc
tree1f3b36fbe3fdae255c8c2ba03a8ff0ce6c62dc08
parent81e15a5dea2e50135a83d249944e12537f6b152e
mesa/main/debug: Check if we successfully reopened the ppm file.

Since we created the file, we should be able to reopen it for appending, but
some weird filesystem error could cause that to be false. So simply check
whether we could reopen it or not.

CID: 1177144
Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/debug.c