Commit 3b1cb640 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[STYLE]

parent 280bac9d
......@@ -22,6 +22,8 @@
//
//---------------------------------------------------------------------------
#include <string>
#include <osg/Depth>
#include "WGEGeodeUtils.h"
......
......@@ -22,6 +22,8 @@
//
//---------------------------------------------------------------------------
#include <string>
#include <osg/Texture2D>
#include <osgDB/ReadFile>
......@@ -52,7 +54,7 @@ WGEViewerEffectImageOverlay::WGEViewerEffectImageOverlay():
// some logo
osg::ref_ptr< osg::Texture2D > logoTexture = new osg::Texture2D;
osg::Image* logoImage = osgDB::readImageFile( ( WPathHelper::getSharePath() / "GE" / "overlay.png" ).string() );
if ( logoImage )
if( logoImage )
{
// Assign the texture to the image we read from file:
logoTexture->setImage( logoImage );
......
......@@ -75,7 +75,6 @@ protected:
osg::ref_ptr< osg::Uniform > m_viewportHeight;
private:
/**
* Update the viewport uniforms
*/
......@@ -87,7 +86,7 @@ private:
*
* \param renderInfo current render state
*/
virtual void operator() ( osg::RenderInfo& renderInfo ) const
virtual void operator() ( osg::RenderInfo& renderInfo ) const // NOLINT: non const ref
{
m_viewportWidth->set( static_cast< float >( renderInfo.getState()->getCurrentViewport()->width() ) );
m_viewportHeight->set( static_cast< float >( renderInfo.getState()->getCurrentViewport()->height() ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment