improved performance using my own tga load function always instead of QImage
improved Profiler
This commit is contained in:
@@ -428,8 +428,12 @@ void OglViewerWidget::setAmbCoef(double value)
|
||||
void OglViewerWidget::setHeadlight(bool value)
|
||||
{
|
||||
m_light.headlight = value;
|
||||
if (m_lightOn)
|
||||
|
||||
if (m_lightOn && value)
|
||||
{
|
||||
updateLightPosition();
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
void OglViewerWidget::setBackfaceCulling(bool value)
|
||||
|
||||
Reference in New Issue
Block a user