projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2279713
)
gl/memory: provide compatability defines
author
Matthew Waters
<ystreet00@gmail.com>
Fri, 23 May 2014 02:07:50 +0000
(12:07 +1000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:41 +0000
(19:31 +0000)
fixes build on android/OS X
gst-libs/gst/gl/gstglmemory.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglmemory.c
b/gst-libs/gst/gl/gstglmemory.c
index a5c60d7405ce422476c8439ef3ce98300c50ad36..90e73a2c56f7e036a9b9b2f14ca893b48d50a80e 100644
(file)
--- a/
gst-libs/gst/gl/gstglmemory.c
+++ b/
gst-libs/gst/gl/gstglmemory.c
@@
-60,6
+60,12
@@
static GstAllocator *_gl_allocator;
#ifndef GL_RG
#define GL_RG 0x8227
#endif
+#ifndef GL_R8
+#define GL_R8 0x8229
+#endif
+#ifndef GL_RG8
+#define GL_RG8 0x822B
+#endif
#ifndef GL_PIXEL_PACK_BUFFER
#define GL_PIXEL_PACK_BUFFER 0x88EB
#endif
@@
-269,7
+275,7
@@
_sized_gl_format_from_gl_format_type (GLenum format, GLenum type)
return GL_RGB8;
break;
case GL_UNSIGNED_SHORT_5_6_5:
- return GL_RGB
565
;
+ return GL_RGB;
break;
}
break;