Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | From 14d51cbefef19737e7ab2b6818ee1d3bdb248d12 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jeremy Stashluk <jstashluk@dekaresearch.com> |
| 3 | Date: Wed, 6 Feb 2013 09:59:48 -0500 |
| 4 | Subject: [PATCH] conditional gl framebuffer undefined use |
| 5 | |
| 6 | The OpenGL extension GL_ARB_framebuffer_object defines the macro |
| 7 | GL_FRAMEBUFFER_UNDEFINED. The macro will only need to map to an error |
| 8 | string if the extension provides functions that might return the macro. |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Signed-off-by: Jeremy Stashluk <jstashluk@dekaresearch.com> |
| 13 | --- |
| 14 | gst-libs/gst/gl/gstgldisplay.c | 2 ++ |
| 15 | 1 file changed, 2 insertions(+) |
| 16 | |
| 17 | diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c |
| 18 | index 3ed0b71..64c6c2c 100644 |
| 19 | --- a/gst-libs/gst/gl/gstgldisplay.c |
| 20 | +++ b/gst-libs/gst/gl/gstgldisplay.c |
| 21 | @@ -2177,9 +2177,11 @@ gst_gl_display_check_framebuffer_status (void) |
| 22 | GST_ERROR ("GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"); |
| 23 | break; |
| 24 | |
| 25 | +#if defined(GL_ARB_framebuffer_object) |
| 26 | case GL_FRAMEBUFFER_UNDEFINED: |
| 27 | GST_ERROR ("GL_FRAMEBUFFER_UNDEFINED"); |
| 28 | break; |
| 29 | +#endif |
| 30 | |
| 31 | default: |
| 32 | GST_ERROR ("General FBO error"); |
| 33 | -- |
| 34 | 1.7.9.5 |
| 35 | |