From 5f71bca30396b25247e3263ce37a4a011df9ad09 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 12 Jun 2001 19:07:13 +0000 Subject: [PATCH] Fixed panel edge artifacts (due to forced wrapping of background texture) --- src/Cockpit/panel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 869aa7114..9537af7be 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -249,8 +249,8 @@ FGPanel::update () glColor4f(0.7, 0.2, 0.2, 1.0); } glBindTexture(GL_TEXTURE_2D, _bg->getHandle()); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); + // glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); + // glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); glBegin(GL_POLYGON); glTexCoord2f(0.0, 0.0); glVertex3f(_winx, _winy, 0); -- 2.39.5