Commit 628cda11 authored by unknown's avatar unknown
Browse files

Made it all workgit clear -f

parent 245b0bc8
......@@ -2,6 +2,7 @@
#define __IMAGEUTILITIES_H
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <string>
#include <vector>
#include <stb_wrapper.h>
......@@ -179,7 +180,7 @@ namespace glare
std::vector<unsigned char> converted_data(data.width()*data.height()*data.components());
for (int i = 0; i < converted_data.size(); ++i) {
converted_data[i] = unsigned char(glm::clamp(data.data()[i], 0, 1) * 255);
converted_data[i] = unsigned char(glm::clamp(data.data()[i], 0.f, 1.f) * 255);
if (i % 4 == 3)
converted_data[i] = 255;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment