1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 09:39:56 +00:00

Finish gldebug location move

This commit is contained in:
AnyOldName3 2018-10-26 15:18:38 +01:00
parent d42c976852
commit ac18983f37
3 changed files with 16 additions and 13 deletions

View File

@ -11,9 +11,9 @@
#include <SDL.h>
#include <components/debug/debuglog.hpp>
#include <components/debug/gldebug.hpp>
#include <components/misc/rng.hpp>
#include <components/misc/gldebug.hpp>
#include <components/vfs/manager.hpp>
#include <components/vfs/registerarchives.hpp>
@ -427,7 +427,7 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
camera->setGraphicsContext(graphicsWindow);
camera->setViewport(0, 0, width, height);
mViewer->setRealizeOperation(new EnableGLDebugOperation());
mViewer->setRealizeOperation(new Debug::EnableGLDebugOperation());
mViewer->realize();

View File

@ -86,11 +86,11 @@ add_component_dir (esmterrain
)
add_component_dir (misc
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache gldebug
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache
)
add_component_dir (debug
debugging debuglog
debugging debuglog gldebug
)
IF(NOT WIN32 AND NOT APPLE)

View File

@ -1,16 +1,19 @@
#ifndef OPENMW_COMPONENTS_MISC_GLDEBUG_H
#define OPENMW_COMPONENTS_MISC_GLDEBUG_H
#ifndef OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
#define OPENMW_COMPONENTS_DEBUG_GLDEBUG_H
#include <osgViewer/ViewerEventHandlers>
class EnableGLDebugOperation : public osg::GraphicsOperation
namespace Debug
{
public:
EnableGLDebugOperation();
class EnableGLDebugOperation : public osg::GraphicsOperation
{
public:
EnableGLDebugOperation();
virtual void operator()(osg::GraphicsContext* graphicsContext);
virtual void operator()(osg::GraphicsContext* graphicsContext);
private:
OpenThreads::Mutex mMutex;
};
private:
OpenThreads::Mutex mMutex;
};
}
#endif