Browse Source

doc: fix the recommended texture format.

Forgot that ES wants the component count to match.
pull/432/head
Vladimír Vondruš 6 years ago
parent
commit
44609d845f
  1. 2
      doc/snippets/MagnumDebugTools-gl.cpp

2
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] */
}

Loading…
Cancel
Save