tests/gears: Ensure we don't use unavailable GL resources
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 16 Jul 2015 13:53:42 +0000 (14:53 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 16 Jul 2015 13:55:25 +0000 (14:55 +0100)
commitb274a2656d06ed7aa3e649e93988de86af048957
tree4d651f90841e5629f1e895cca8e9c386a71f2759
parenta39b8f67ba914cd2d6c2df50ce8b1659d9714d30
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.
tests/gtkgears.c