Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] Add interpolation parameter to resize_to_po2() #44460

Merged
merged 1 commit into from
Dec 19, 2020

Commits on Dec 18, 2020

  1. Add interpolation parameter to resize_to_po2()

    Image::resize_to_po2() now takes an optional p_interpolation parameter
    that it passes directly to resize() with default value INTERPOLATE_BILINEAR.
    
    GLES2: call resize_to_po2() with interpolate argument
    
    Call resize_to_po2() in GLES2 rasterizer storage with either
    INTERPOLATE_BILINEAR or INTERPOLATE_NEAREST depending on TEXTURE_FLAG_FILTER.
    
    This avoids filtering issues with non power of two pixel art textures.
    See godotengine#44379
    theoratkin committed Dec 18, 2020
    Configuration menu
    Copy the full SHA
    8f6a6ac View commit details
    Browse the repository at this point in the history