glmemory: Only use glDrawBuffer if available
authorSebastian Dröge <sebastian@centricular.com>
Tue, 9 May 2017 09:25:20 +0000 (11:25 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 9 May 2017 09:26:13 +0000 (11:26 +0200)
commit0730a55af3ab87398c7ce5992b3fc460a0966ea6
treed2c714f78014299cd5c51f974bf92ad74ad6434b
parentea6e58d27fabc6a5f671bae3e885896c4a3b8b50
glmemory: Only use glDrawBuffer if available

Otherwise fall back to glDrawBuffers. Also check if glReadBuffer exists
before using it.

glDrawBuffer does not exist for GLES, only glDrawBuffers does.

https://bugzilla.gnome.org/show_bug.cgi?id=782376
gst-libs/gst/gl/gstglmemory.c