Skip to content

Allow passing null as glTexImage2d Buffer #18

@wakaztahir

Description

@wakaztahir

I tried passing an empty buffer but that didn't work

My codebase explicitly passed null and it works on Android, I don't know about other platforms, An android only solution or multiplatform solution should be tried

   // null can be passed as buffer in android codebase
   GLES20.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0,
        GL_RGBA, GL_UNSIGNED_BYTE, null
   )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions