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:
parent
f34cd0d18a
commit
1b1ab324bc
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user