OSDN Git Service

Exit when QemuPipe is corrupted by GL
authorYahan Zhou <yahan@google.com>
Tue, 8 Mar 2016 22:02:22 +0000 (14:02 -0800)
committerYahan Zhou <yahan@google.com>
Tue, 8 Mar 2016 22:27:17 +0000 (14:27 -0800)
commitfab5eb7b35eb380c84a68b3117cb9dd76d65c9d5
tree447a35b555665c9795c7672e4c0db7bbeb57ba0e
parentb01769885b1fb7ec3f4d4743f650660be7e92cad
Exit when QemuPipe is corrupted by GL

Previously when QemuPipe is corrupted, it prints an error message, and
the application will continue to use it, which leads to random behaviour
in GL on the host.

This patch crashes the APP and pops up the crash dialog when the pipe is
(going to be) corrupted. It would happen if the user asks GL to write /
read a NULL pointer (i.e. passing NULL to glGenBuffers). It might also
happen for other unknown reasons.

Change-Id: I303772029bb72a845fa0d4c79b0d38dba1fca2c7
system/OpenglSystemCommon/QemuPipeStream.cpp