Open
Description
When I trying to create grayscale texture with one component it doesn't works (OpenGL ES 3.0 Mesa 13.0.6).
Debug message with high or medium severity: `GL_INVALID_OPERATION in glTexImage%dD(format = GL_RGBA, type = GL_UNSIGNED_BYTE, internalformat = GL_R8)`.
It seems, format should be GL_RED
(not GL_RGBA
).
The code:
Texture2d::empty_with_format(
self.facade,
UncompressedFloatFormat::U8,
MipmapsOption::NoMipmap,
size.width,
size.height,
)
Metadata
Metadata
Assignees
Labels
No labels