MSVC: Fix several compiler warnings
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#ifndef PATHSIMULATOR_CAMSimulatorGui_H
|
||||
#define PATHSIMULATOR_CAMSimulatorGui_H
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4251)
|
||||
#endif
|
||||
|
||||
#include <Mod/Part/App/TopoShape.h>
|
||||
#include <QWindow>
|
||||
#include <QOpenGLExtraFunctions>
|
||||
|
||||
@@ -570,7 +570,7 @@ void SimDisplay::UpdateProjection()
|
||||
shaderLinePath.UpdateProjectionMat(projmat);
|
||||
shaderLinePath.UpdateObjColor(pathLineColorPassed);
|
||||
|
||||
projmat[2][2] *= 0.99999;
|
||||
projmat[2][2] *= 0.99999F;
|
||||
shaderGeomCloser.Activate();
|
||||
shaderGeomCloser.UpdateProjectionMat(projmat);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user