Browse Source

Small fixes

pull/576/head
Vladislav Oleshko 4 years ago
parent
commit
3c899c1631
  1. 8
      src/Magnum/Shaders/MeshVisualizerGL.cpp
  2. 3
      src/Magnum/Shaders/VectorGL.cpp

8
src/Magnum/Shaders/MeshVisualizerGL.cpp

@ -633,6 +633,9 @@ MeshVisualizer2D::MeshVisualizerGL2D(CompileState&& cs)
#endif #endif
} }
#endif #endif
static_cast<void>(context);
static_cast<void>(version);
} }
MeshVisualizerGL2D& MeshVisualizerGL2D::setViewportSize(const Vector2& size) { MeshVisualizerGL2D& MeshVisualizerGL2D::setViewportSize(const Vector2& size) {
@ -715,7 +718,7 @@ MeshVisualizerGL3D::CompileState MeshVisualizerGL3D::compile(Flags flags
"Shaders::MeshVisualizerGL3D: at least one visualization feature has to be enabled", CompileState{NoCreate}); "Shaders::MeshVisualizerGL3D: at least one visualization feature has to be enabled", CompileState{NoCreate});
#else #else
CORRADE_ASSERT(flags & (Flag::Wireframe & ~Flag::NoGeometryShader), CORRADE_ASSERT(flags & (Flag::Wireframe & ~Flag::NoGeometryShader),
"Shaders::MeshVisualizerGL3D: at least Flag::Wireframe has to be enabled", ); "Shaders::MeshVisualizerGL3D: at least Flag::Wireframe has to be enabled", CompileState{NoCreate});
#endif #endif
#if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL) #if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL)
@ -1047,6 +1050,9 @@ MeshVisualizerGL3D::MeshVisualizerGL3D(CompileState&& cs)
#endif #endif
} }
#endif #endif
static_cast<void>(context);
static_cast<void>(version);
} }
MeshVisualizerGL3D& MeshVisualizerGL3D::setTransformationMatrix(const Matrix4& matrix) { MeshVisualizerGL3D& MeshVisualizerGL3D::setTransformationMatrix(const Matrix4& matrix) {

3
src/Magnum/Shaders/VectorGL.cpp

@ -225,6 +225,9 @@ template<UnsignedInt dimensions> VectorGL<dimensions>::VectorGL(CompileState&& c
setColor(Color4{1.0f}); setColor(Color4{1.0f});
} }
#endif #endif
static_cast<void>(context);
static_cast<void>(version);
} }
template<UnsignedInt dimensions> VectorGL<dimensions>& VectorGL<dimensions>::setTransformationProjectionMatrix(const MatrixTypeFor<dimensions, Float>& matrix) { template<UnsignedInt dimensions> VectorGL<dimensions>& VectorGL<dimensions>::setTransformationProjectionMatrix(const MatrixTypeFor<dimensions, Float>& matrix) {

Loading…
Cancel
Save