Skip to content

Commit

Permalink
srgb textures - closes #709
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Feb 1, 2016
1 parent a779ec2 commit 2fef6d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,12 @@ bool Material::deserializeTexture(JsonSerializer& serializer, const char* materi
{
serializer.deserialize(keep_data, false);
}
else if (compareString(label, "srgb") == 0)
{
bool is_srgb;
serializer.deserialize(is_srgb, false);
if(is_srgb) flags |= BGFX_TEXTURE_SRGB;
}
else
{
g_log_warning.log("Renderer") << "Unknown data \"" << label << "\" in material "
Expand Down

0 comments on commit 2fef6d2

Please sign in to comment.