log statements from texture load changed from info to debug level
This commit is contained in:
parent
24f6d3ed3d
commit
346a059ee2
|
@ -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) << ")";
|
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);
|
load(surface->pixels, {surface->w, surface->h}, GL_RGBA, GL_UNSIGNED_BYTE);
|
||||||
message_level = sb::Log::INFO;
|
message_level = sb::Log::DEBUG;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -120,7 +120,7 @@ void Texture::load(void* pixels, glm::vec2 size, GLenum format, GLenum type)
|
||||||
bind();
|
bind();
|
||||||
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, size.x, size.y, format, type, pixels);
|
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 << "Loaded " << size.x << "×" << size.y << " image into texture ID " << id();
|
||||||
message_level = sb::Log::INFO;
|
message_level = sb::Log::DEBUG;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue