gl: examples: fix c++ code for -Wreturn-aggregate
authorTim-Philipp Müller <tim@centricular.com>
Mon, 11 Dec 2017 00:26:36 +0000 (00:26 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Dec 2017 12:01:44 +0000 (12:01 +0000)
commit0eefcb23b47005333b8fabfe204f31abe1bdb314
tree58f17aa2c3578db35f0777c6f223127b477e9248
parent26b3955aba00b448d09c525fdd3502d30b83fd5d
gl: examples: fix c++ code for -Wreturn-aggregate

.. and use #ifdef instead of #if
tests/examples/gl/generic/cubeyuv/main.cpp
tests/examples/gl/generic/doublecube/main.cpp
tests/examples/gl/generic/recordgraphic/main.cpp