mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 11:11:33 +00:00
Avoid virtual call in GraphicsWindowSDL2 ctor
/home/elsid/dev/openmw/components/sdlutil/sdlgraphicswindow.cpp:23:8: warning: Call to virtual function during construction [clang-analyzer-optin.cplusplus.VirtualCall] if(valid()) ^ /home/elsid/dev/openmw/components/sdlutil/sdlgraphicswindow.cpp:23:8: note: This constructor of an object of type 'GraphicsWindowSDL2' has not returned when the virtual method was called /home/elsid/dev/openmw/components/sdlutil/sdlgraphicswindow.cpp:23:8: note: Call to virtual function during construction
This commit is contained in:
parent
4cd2ff9a3d
commit
b07a6afa91
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ GraphicsWindowSDL2::GraphicsWindowSDL2(osg::GraphicsContext::Traits *traits)
|
||||||
_traits = traits;
|
_traits = traits;
|
||||||
|
|
||||||
init();
|
init();
|
||||||
if(valid())
|
if(GraphicsWindowSDL2::valid())
|
||||||
{
|
{
|
||||||
setState(new osg::State);
|
setState(new osg::State);
|
||||||
getState()->setGraphicsContext(this);
|
getState()->setGraphicsContext(this);
|
||||||
|
|
Loading…
Reference in a new issue