1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0023000: Improve the way the gradient and textured background is managed in 3d viewer

This commit is contained in:
ouv 2012-04-05 19:31:19 +04:00 committed by ouv
parent f34cd0d18a
commit 1b1ab324bc

View File

@ -1455,6 +1455,8 @@ void OpenGl_View::CreateBackgroundTexture (const Standard_CString AFileName, con
*pdata++ = (GLubyte)( 255 * color.Blue() );
}
glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
GLuint texture = 0;
glGenTextures( 1, &texture );
glBindTexture( GL_TEXTURE_2D, texture );