From 9e4a960170f1186e7cf81adbfb95c8fd5a37f22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 28 Jun 2015 00:29:56 +0200 Subject: [PATCH] Don't show RenderbufferFormat::DepthStencil on WebGL 2. Just the Depth24Stencil8 format. --- src/Magnum/RenderbufferFormat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/RenderbufferFormat.h b/src/Magnum/RenderbufferFormat.h index 723c6a5b9..5e1c5e4bd 100644 --- a/src/Magnum/RenderbufferFormat.h +++ b/src/Magnum/RenderbufferFormat.h @@ -532,7 +532,7 @@ enum class RenderbufferFormat: GLenum { StencilIndex16 = GL_STENCIL_INDEX16, #endif - #if !defined(MAGNUM_TARGET_GLES) || defined(MAGNUM_TARGET_WEBGL) + #if !defined(MAGNUM_TARGET_GLES) || (defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) /** * Depth and stencil component, size implementation-dependent. * @requires_gl Use exactly specified format in OpenGL ES instead. This is,