From 1b1ab324bc04ccf2708cbb055022b181288aa78a Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 5 Apr 2012 19:31:19 +0400 Subject: [PATCH] 0023000: Improve the way the gradient and textured background is managed in 3d viewer --- src/OpenGl/OpenGl_View_2.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OpenGl/OpenGl_View_2.cxx b/src/OpenGl/OpenGl_View_2.cxx index 6a1813eabb..dee9a49afd 100644 --- a/src/OpenGl/OpenGl_View_2.cxx +++ b/src/OpenGl/OpenGl_View_2.cxx @@ -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 ); -- 2.20.1