16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00
This commit is contained in:
milek7
2018-07-16 00:20:07 +02:00
parent 4c855d5980
commit a29379ed8b
6 changed files with 12 additions and 7 deletions

View File

@@ -832,12 +832,12 @@ void opengl_texture::alloc_rendertarget(GLint format, GLint components, GLint ty
}
void
opengl_texture::set_filtering() const {
opengl_texture::set_filtering() const
{
// default texture mode
::glTexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
::glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR );
::glTexParameterf(target, GL_TEXTURE_MAX_ANISOTROPY, Global.AnisotropicFiltering );
::glTexParameterf(target, GL_TEXTURE_MAX_ANISOTROPY_EXT, Global.AnisotropicFiltering );
bool sharpen{ false };
for( auto const &trait : traits ) {