From 7135476fc282ad62373347af2118fbe421415966 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 29 Jul 2008 12:09:18 +0000 Subject: replace GL_RESCALE_NORMAL with GL_NORMALIZE --- src/render/draw.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/render/draw.cc b/src/render/draw.cc index b26b8ce..b552361 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -956,11 +956,13 @@ void draw(float seconds) gl::enable(GL_CULL_FACE); // enable culling gl::enable(GL_COLOR_MATERIAL); // enable color tracking gl::enable(GL_LIGHTING); - gl::enable(GL_RESCALE_NORMAL); // rescale normals by the transformation matrix scale factor + //gl::enable(GL_RESCALE_NORMAL); // rescale normals by the transformation matrix scale factor + gl::enable(GL_NORMALIZE); draw_pass_default(); // draw entities without model - gl::disable(GL_RESCALE_NORMAL); + gl::disable(GL_NORMALIZE); + //gl::disable(GL_RESCALE_NORMAL); glEnableClientState(GL_COLOR_ARRAY); -- cgit v1.2.3