Commit 59be8821 authored by Sébastien Gonzalve's avatar Sébastien Gonzalve Committed by Arjan Spieard

Fix missing initialization in PixFmt

parent d6e4385c
......@@ -144,11 +144,11 @@ Texture::~Texture() { ldr->remove(this); }
// Stuff for converting pix::Format into OpenGL enum values & other flags
namespace {
struct PixFmt {
PixFmt(): swap() {} // Required by std::map
PixFmt() = default;
PixFmt(GLenum f, GLenum t, bool s): format(f), type(t), swap(s) {}
GLenum format;
GLenum type;
bool swap; // Reverse byte order
GLenum format = GL_RGB;
GLenum type = GL_UNSIGNED_BYTE;
bool swap = false; // Reverse byte order
};
struct PixFormats {
typedef std::map<pix::Format, PixFmt> Map;
......
Markdown is supported
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