From 44609d845f48ccad1b43a58e7457f32c238aa144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 2 Apr 2020 01:22:32 +0200 Subject: [PATCH] doc: fix the recommended texture format. Forgot that ES wants the component count to match. --- doc/snippets/MagnumDebugTools-gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/snippets/MagnumDebugTools-gl.cpp b/doc/snippets/MagnumDebugTools-gl.cpp index 610792af9..dce0d4d4e 100644 --- a/doc/snippets/MagnumDebugTools-gl.cpp +++ b/doc/snippets/MagnumDebugTools-gl.cpp @@ -80,7 +80,7 @@ colorMapTexture .setMinificationFilter(SamplerFilter::Linear) .setMagnificationFilter(SamplerFilter::Linear) .setWrapping(SamplerWrapping::ClampToEdge) // or Repeat - .setStorage(1, GL::TextureFormat::RGBA8, size) // or SRGBA8 + .setStorage(1, GL::TextureFormat::RGB8, size) // or SRGB8 .setSubImage(0, {}, ImageView2D{PixelFormat::RGB8Srgb, size, map}); /* [ColorMap] */ }