mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 10:40:21 +00:00
UYVY: fixed a macro
Mesa GLSL compilation failed when shader contained macro starting with GL_ (supposedly reserved for OpenGL).
This commit is contained in:
@@ -64,21 +64,21 @@ using namespace std;
|
||||
namespace {
|
||||
|
||||
static const char fp_display_rgba_to_yuv422_legacy[] =
|
||||
"#define GL_legacy 1\n"
|
||||
"#if GL_legacy\n"
|
||||
"#define LEGACY 1\n"
|
||||
"#if LEGACY\n"
|
||||
"#define TEXCOORD gl_TexCoord[0]\n"
|
||||
"#else\n"
|
||||
"#define TEXCOORD TEX0\n"
|
||||
"#define texture2D texture\n"
|
||||
"#endif\n"
|
||||
"\n"
|
||||
"#if GL_legacy\n"
|
||||
"#if LEGACY\n"
|
||||
"#define colorOut gl_FragColor\n"
|
||||
"#else\n"
|
||||
"out vec4 colorOut;\n"
|
||||
"#endif\n"
|
||||
"\n"
|
||||
"#if ! GL_legacy\n"
|
||||
"#if ! LEGACY\n"
|
||||
"in vec4 TEX0;\n"
|
||||
"#endif\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user