tests/gears: Ensure we don't use unavailable GL resources
We need to check on realize if we have access to a GL context, before calling GL functions. We use gtk_gl_area_get_error() for that. We also need to tear down the resources during unrealization, instead of leaking them.
Showing with 87 additions and 35 deletions