Document `Image.FORMAT_R8` stores in alpha channel instead in GLES2

This commit is contained in:
Hugo Locurcio 2021-10-25 16:52:58 +02:00
parent a1b282cc16
commit 059ba23f72
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 1 additions and 0 deletions

View File

@ -434,6 +434,7 @@
</constant>
<constant name="FORMAT_R8" value="2" enum="Format">
OpenGL texture format [code]RED[/code] with a single component and a bitdepth of 8.
[b]Note:[/b] When using the GLES2 backend, this uses the alpha channel instead of the red channel for storage.
</constant>
<constant name="FORMAT_RG8" value="3" enum="Format">
OpenGL texture format [code]RG[/code] with two components and a bitdepth of 8 for each.