X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=input.cpp;fp=input.cpp;h=cf0210c8fcfca822ff1d5b8d463ed9069dabf369;hb=ad0e48a8b82a679f1d2836254ef33320e7162733;hp=453620c41df023353fc943c920cd117673c0f1b2;hpb=6a31570f6a85004d33a83bbe2f77642614361da6;p=movit diff --git a/input.cpp b/input.cpp index 453620c..cf0210c 100644 --- a/input.cpp +++ b/input.cpp @@ -41,6 +41,9 @@ void Input::finalize() } else if (image_format.pixel_format == FORMAT_BGRA) { format = GL_BGRA; bytes_per_pixel = 4; + } else if (image_format.pixel_format == FORMAT_GRAYSCALE) { + format = GL_LUMINANCE; + bytes_per_pixel = 1; } else { assert(false); }