Skip to content
Snippets Groups Projects
Commit febca65e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying to fix textues on macos with latest fltk

parent d2c11a6c
No related branches found
No related tags found
No related merge requests found
......@@ -417,6 +417,7 @@ bool drawContext::generateTextureForImage(const std::string &name, int page,
return false;
}
Fl_RGB_Image *img2 = (Fl_RGB_Image*)img->copy(2048, 2048);
glPixelStorei(GL_UNPACK_ROW_LENGTH, img2->w());
glGenTextures(1, &imageTexture);
glBindTexture(GL_TEXTURE_2D, imageTexture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment