gl: remove support for POT textures
This commit is contained in:
parent
2b250db353
commit
a19ea7cf7d
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
}
|
||||
|
|
|
@ -68,7 +68,6 @@ impl Framebuffer {
|
|||
handle: self.image,
|
||||
format: self.format,
|
||||
size: self.size,
|
||||
padded_size: Default::default(),
|
||||
},
|
||||
filter,
|
||||
mip_filter: filter,
|
||||
|
|
|
@ -516,7 +516,6 @@ void main()
|
|||
width: fb_width as u32,
|
||||
height: fb_height as u32,
|
||||
},
|
||||
padded_size: Default::default(),
|
||||
};
|
||||
|
||||
filter
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -510,7 +510,6 @@ void main()
|
|||
width: fb_width as u32,
|
||||
height: fb_height as u32,
|
||||
},
|
||||
padded_size: Default::default(),
|
||||
};
|
||||
|
||||
filter
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue