#include <string.h>
#include <assert.h>
+#include <GL/glew.h>
#include "flat_input.h"
#include "util.h"
-#include "opengl.h"
FlatInput::FlatInput(ImageFormat image_format, MovitPixelFormat pixel_format, GLenum type, unsigned width, unsigned height)
: image_format(image_format),
internal_format = GL_RGBA16F_ARB;
} else if (output_linear_gamma) {
assert(type == GL_UNSIGNED_BYTE);
- internal_format = GL_SRGB8;
+ internal_format = GL_SRGB8_ALPHA8;
} else {
assert(type == GL_UNSIGNED_BYTE);
internal_format = GL_RGBA8;