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

largertexture

parent f2c50ddc
Branches
Tags
No related merge requests found
...@@ -385,7 +385,7 @@ void drawContext::drawBackgroundImage(bool threeD) ...@@ -385,7 +385,7 @@ void drawContext::drawBackgroundImage(bool threeD)
CTX::instance()->bgImageFileName.clear(); CTX::instance()->bgImageFileName.clear();
return; return;
} }
_bgImageTexture = gmshPopplerWrapper::getTextureForPage(1024, 1024); _bgImageTexture = gmshPopplerWrapper::getTextureForPage(2048, 2048);
_bgImageW = gmshPopplerWrapper::width(); _bgImageW = gmshPopplerWrapper::width();
_bgImageH = gmshPopplerWrapper::height(); _bgImageH = gmshPopplerWrapper::height();
} }
...@@ -408,7 +408,7 @@ void drawContext::drawBackgroundImage(bool threeD) ...@@ -408,7 +408,7 @@ void drawContext::drawBackgroundImage(bool threeD)
CTX::instance()->bgImageFileName.clear(); CTX::instance()->bgImageFileName.clear();
return; return;
} }
Fl_RGB_Image *img2 = (Fl_RGB_Image*)img->copy(1024, 1024); Fl_RGB_Image *img2 = (Fl_RGB_Image*)img->copy(2048, 2048);
glGenTextures(1, &_bgImageTexture); glGenTextures(1, &_bgImageTexture);
glBindTexture(GL_TEXTURE_2D, _bgImageTexture); glBindTexture(GL_TEXTURE_2D, _bgImageTexture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 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.
Please register or to comment