X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.cpp;h=c7f417b873ddc64496d07e5311fa24e1c91c1127;hp=2541dc45af94c50383a8a89d9b1639dd1650b480;hb=9dcbd93164611ea111cc29519c18193d4f571ac1;hpb=ef82f39846c48a654b63797b78bf8b0b8935d348 diff --git a/flat_input.cpp b/flat_input.cpp index 2541dc4..c7f417b 100644 --- a/flat_input.cpp +++ b/flat_input.cpp @@ -12,13 +12,13 @@ FlatInput::FlatInput(ImageFormat image_format, unsigned width, unsigned height) : image_format(image_format), needs_update(false), finalized(false), - use_srgb_texture_format(false), + output_linear_gamma(false), needs_mipmaps(false), width(width), height(height), pitch(width) { - register_int("use_srgb_texture_format", &use_srgb_texture_format); + register_int("output_linear_gamma", &output_linear_gamma); register_int("needs_mipmaps", &needs_mipmaps); } @@ -26,7 +26,7 @@ void FlatInput::finalize() { // Translate the input format to OpenGL's enums. GLenum internal_format; - if (use_srgb_texture_format) { + if (output_linear_gamma) { internal_format = GL_SRGB8; } else { internal_format = GL_RGBA8;