mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
gl/memory: provide compatability defines
fixes build on android/OS X
This commit is contained in:
parent
2279713aa0
commit
146c666ba2
1 changed files with 7 additions and 1 deletions
|
@ -60,6 +60,12 @@ static GstAllocator *_gl_allocator;
|
||||||
#ifndef GL_RG
|
#ifndef GL_RG
|
||||||
#define GL_RG 0x8227
|
#define GL_RG 0x8227
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef GL_R8
|
||||||
|
#define GL_R8 0x8229
|
||||||
|
#endif
|
||||||
|
#ifndef GL_RG8
|
||||||
|
#define GL_RG8 0x822B
|
||||||
|
#endif
|
||||||
#ifndef GL_PIXEL_PACK_BUFFER
|
#ifndef GL_PIXEL_PACK_BUFFER
|
||||||
#define GL_PIXEL_PACK_BUFFER 0x88EB
|
#define GL_PIXEL_PACK_BUFFER 0x88EB
|
||||||
#endif
|
#endif
|
||||||
|
@ -269,7 +275,7 @@ _sized_gl_format_from_gl_format_type (GLenum format, GLenum type)
|
||||||
return GL_RGB8;
|
return GL_RGB8;
|
||||||
break;
|
break;
|
||||||
case GL_UNSIGNED_SHORT_5_6_5:
|
case GL_UNSIGNED_SHORT_5_6_5:
|
||||||
return GL_RGB565;
|
return GL_RGB;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue