OSDN Git Service

Harden against X11 instability.
authorNicolas Capens <capn@google.com>
Thu, 5 Jul 2018 17:11:03 +0000 (13:11 -0400)
committerNicolas Capens <nicolascapens@google.com>
Fri, 6 Jul 2018 20:55:30 +0000 (20:55 +0000)
commitfbba4900f68b12171277175980df2e52517cb6b6
tree4e0ac0122cf6317bce60ad543310dadc2d8e0c3e
parent551478a9b8be146edaf4bcc7639ed77752d1650f
Harden against X11 instability.

Avoid accessing null pointers when an X11 call fails.

Since EGL doesn't own the X11 window, we expect it to be valid
for the duration of the EGL surface. Fail hard if that's not the case.

Bug chromium:833229
Bug chromium:824522

Change-Id: Iba5e3832fe312fb50232a13e2163a022f5048a76
Reviewed-on: https://swiftshader-review.googlesource.com/19788
Reviewed-by: Corentin Wallez <cwallez@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/Main/FrameBufferX11.cpp
src/Main/FrameBufferX11.hpp