8000 One Component texture in OpenGL ES · Issue #1730 · glium/glium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
One Component texture in OpenGL ES #1730
Open
@katyo

Description

@katyo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0