gl: remove support for POT textures

This commit is contained in:
chyyran 2023-02-10 00:59:22 -05:00
parent 2b250db353
commit a19ea7cf7d
7 changed files with 0 additions and 10 deletions

View file

@ -49,7 +49,6 @@ impl From<libra_source_image_gl_t> for GLImage {
handle: value.handle,
format: value.format,
size: Size::new(value.width, value.height),
padded_size: Size::default(),
}
}
}

View file

@ -12,6 +12,4 @@ pub struct GLImage {
pub format: GLenum,
/// The size of the texture.
pub size: Size<u32>,
/// The padded size of the texture. Currently unused and can be ignored.
pub padded_size: Size<u32>,
}

View file

@ -68,7 +68,6 @@ impl Framebuffer {
handle: self.image,
format: self.format,
size: self.size,
padded_size: Default::default(),
},
filter,
mip_filter: filter,

View file

@ -516,7 +516,6 @@ void main()
width: fb_width as u32,
height: fb_height as u32,
},
padded_size: Default::default(),
};
filter

View file

@ -3,7 +3,6 @@ use crate::framebuffer::GLImage;
use crate::gl::LoadLut;
use crate::texture::InputTexture;
use gl::types::{GLsizei, GLuint};
use librashader_common::Size;
use librashader_presets::TextureConfig;
use librashader_runtime::image::{Image, UVDirection};
use librashader_runtime::scaling::MipmapSize;
@ -69,7 +68,6 @@ impl LoadLut for Gl3LutLoad {
handle,
format: gl::RGBA8,
size: image.size,
padded_size: Size::default(),
},
filter: texture.filter_mode,
mip_filter: texture.filter_mode,

View file

@ -510,7 +510,6 @@ void main()
width: fb_width as u32,
height: fb_height as u32,
},
padded_size: Default::default(),
};
filter

View file

@ -3,7 +3,6 @@ use crate::framebuffer::GLImage;
use crate::gl::LoadLut;
use crate::texture::InputTexture;
use gl::types::{GLsizei, GLuint};
use librashader_common::Size;
use librashader_presets::TextureConfig;
use librashader_runtime::image::{Image, UVDirection};
use librashader_runtime::scaling::MipmapSize;
@ -71,7 +70,6 @@ impl LoadLut for Gl46LutLoad {
handle,
format: gl::RGBA8,
size: image.size,
padded_size: Size::default(),
},
filter: texture.filter_mode,
mip_filter: texture.filter_mode,