Skip to content

gl::Texture::update() should handle resizes internally #998

Open
@richardeakin

Description

@richardeakin

Currently you'll get a gl error if you try to call update() with data of different dimensions. The rationale behind handling this internally is that if you're performance savvy then you'll be using the same size image for a specific Texture, but it is basically free for us make it 'just work', as in calls glTexSubImage* if the data size is the same, or glTexImage* (basically re-init), otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions