From ba4e20006a726d6ab8fd6f860a521039489d577c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 2 Apr 2021 00:38:43 +0200 Subject: [PATCH] python: adapt to GL::TextureFormat updates. --- src/python/magnum/gl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/magnum/gl.cpp b/src/python/magnum/gl.cpp index 6d897a3..17bd9de 100644 --- a/src/python/magnum/gl.cpp +++ b/src/python/magnum/gl.cpp @@ -1186,8 +1186,10 @@ void gl(py::module_& m) { .value("RGBA8", GL::TextureFormat::RGBA8) #endif #ifndef MAGNUM_TARGET_WEBGL + #ifndef MAGNUM_TARGET_GLES2 .value("SR8", GL::TextureFormat::SR8) - #ifdef MAGNUM_TARGET_GLES + #endif + #if defined(MAGNUM_TARGET_GLES) && !defined(MAGNUM_TARGET_GLES2) /** @todo how to expose this one in the docs? */ .value("SRG8", GL::TextureFormat::SRG8) #endif