log statements from texture load changed from info to debug level

This commit is contained in:
frank 2022-09-22 17:21:53 -04:00
parent 24f6d3ed3d
commit 346a059ee2
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ void Texture::load(SDL_Surface* surface)
{
message << "Loading image from SDL surface (" << surface->w << "×" << surface->h << ", " << SDL_GetPixelFormatName(surface->format->format) << ")";
load(surface->pixels, {surface->w, surface->h}, GL_RGBA, GL_UNSIGNED_BYTE);
message_level = sb::Log::INFO;
message_level = sb::Log::DEBUG;
}
else
{
@ -120,7 +120,7 @@ void Texture::load(void* pixels, glm::vec2 size, GLenum format, GLenum type)
bind();
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, size.x, size.y, format, type, pixels);
message << "Loaded " << size.x << "×" << size.y << " image into texture ID " << id();
message_level = sb::Log::INFO;
message_level = sb::Log::DEBUG;
}
else
{