@@ -65,10 +65,10 @@ auto TextureManager::GetSampler(const std::string& fullName) -> std::shared_ptr<
6565void TextureManager::Preload ()
6666{
6767 // Create samplers
68- m_samplers.emplace (std::pair<GLint, GLint> (GL_CLAMP_TO_EDGE , GL_LINEAR ), std::make_shared<Sampler>(GL_CLAMP_TO_EDGE , GL_LINEAR ));
69- m_samplers.emplace (std::pair<GLint, GLint> (GL_CLAMP_TO_EDGE , GL_NEAREST ), std::make_shared<Sampler>(GL_CLAMP_TO_EDGE , GL_NEAREST ));
70- m_samplers.emplace (std::pair<GLint, GLint> (GL_REPEAT , GL_LINEAR ), std::make_shared<Sampler>(GL_REPEAT , GL_LINEAR ));
71- m_samplers.emplace (std::pair<GLint, GLint> (GL_REPEAT , GL_NEAREST ), std::make_shared<Sampler>(GL_REPEAT , GL_NEAREST ));
68+ m_samplers.emplace (std::make_pair (GL_CLAMP_TO_EDGE , GL_LINEAR ), std::make_shared<Sampler>(GL_CLAMP_TO_EDGE , GL_LINEAR ));
69+ m_samplers.emplace (std::make_pair (GL_CLAMP_TO_EDGE , GL_NEAREST ), std::make_shared<Sampler>(GL_CLAMP_TO_EDGE , GL_NEAREST ));
70+ m_samplers.emplace (std::make_pair (GL_REPEAT , GL_LINEAR ), std::make_shared<Sampler>(GL_REPEAT , GL_LINEAR ));
71+ m_samplers.emplace (std::make_pair (GL_REPEAT , GL_NEAREST ), std::make_shared<Sampler>(GL_REPEAT , GL_NEAREST ));
7272
7373 int width{};
7474 int height{};
@@ -78,7 +78,7 @@ void TextureManager::Preload()
7878 M_bytes,
7979 SOIL_LOAD_AUTO ,
8080 SOIL_CREATE_NEW_ID ,
81- SOIL_FLAG_POWER_OF_TWO | SOIL_FLAG_MULTIPLY_ALPHA , &width, &height );
81+ SOIL_FLAG_POWER_OF_TWO | SOIL_FLAG_MULTIPLY_ALPHA );
8282
8383 m_textures[" idlem" ] = std::make_shared<Texture>(" idlem" , tex, GL_TEXTURE_2D , width, height, false );;
8484
@@ -87,7 +87,7 @@ void TextureManager::Preload()
8787 headphones_bytes,
8888 SOIL_LOAD_AUTO ,
8989 SOIL_CREATE_NEW_ID ,
90- SOIL_FLAG_POWER_OF_TWO | SOIL_FLAG_MULTIPLY_ALPHA , &width, &height );
90+ SOIL_FLAG_POWER_OF_TWO | SOIL_FLAG_MULTIPLY_ALPHA );
9191
9292 m_textures[" idleheadphones" ] = std::make_shared<Texture>(" idleheadphones" , tex, GL_TEXTURE_2D , width, height, false );;
9393
@@ -217,7 +217,7 @@ auto TextureManager::LoadTexture(const ScannedFile& file) -> std::shared_ptr<Tex
217217 file.filePath .c_str (),
218218 SOIL_LOAD_RGBA ,
219219 SOIL_CREATE_NEW_ID ,
220- SOIL_FLAG_MULTIPLY_ALPHA , &width, &height );
220+ SOIL_FLAG_MULTIPLY_ALPHA );
221221
222222 if (tex == 0 )
223223 {
0 commit comments