If a GL debugger is attached to a remote ES target, trying to use the texture viewer causes a segfault because the debugger assumes that certain state is present without checking for NULL.