diff options
author | Peter Seiderer <ps.report@gmx.net> | 2020-04-03 22:40:29 +0200 |
---|---|---|
committer | Peter Seiderer <ps.report@gmx.net> | 2020-04-06 20:34:46 +0200 |
commit | 1d18591d9e7ed9b3580e06c37be23bfde24bc30c (patch) | |
tree | 5bc93e495b2ccdcfc908bdee2c6d08de694aa2ca | |
parent | 2e61283f7999f3d518dfc421f1298ace59e833bd (diff) | |
download | qtwayland-1d18591d9e7ed9b3580e06c37be23bfde24bc30c.tar.gz |
examples: fix wayland/texture-sharing/custom-compositor
Fixes:
main.cpp:83:33: error: ‘GL_RGBA8’ was not declared in this scope; did you mean ‘GL_RGBA4’?
83 | *glInternalFormat = GL_RGBA8;
| ^~~~~~~~
| GL_RGBA4
main.cpp:120:33: error: ‘GL_RGBA8’ was not declared in this scope; did you mean ‘GL_RGBA4’?
120 | *glInternalFormat = GL_RGBA8;
| ^~~~~~~~
| GL_RGBA4
Task-number: QTBUG-83304
Change-Id: I0515f3303b08c405d162986e280e9a7bd35e28f7
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r-- | examples/wayland/texture-sharing/custom-compositor/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/wayland/texture-sharing/custom-compositor/main.cpp b/examples/wayland/texture-sharing/custom-compositor/main.cpp index a39c8c38..af375024 100644 --- a/examples/wayland/texture-sharing/custom-compositor/main.cpp +++ b/examples/wayland/texture-sharing/custom-compositor/main.cpp @@ -63,6 +63,10 @@ #include "QtWaylandCompositor/private/qwltexturesharingextension_p.h" +#ifndef GL_RGBA8 +#define GL_RGBA8 0x8058 +#endif + class CustomSharingExtension : public QWaylandTextureSharingExtension { Q_OBJECT |