1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 19:19:40 +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 <SDL.h>
#include <components/debug/debuglog.hpp> #include <components/debug/debuglog.hpp>
#include <components/debug/gldebug.hpp>
#include <components/misc/rng.hpp> #include <components/misc/rng.hpp>
#include <components/misc/gldebug.hpp>
#include <components/vfs/manager.hpp> #include <components/vfs/manager.hpp>
#include <components/vfs/registerarchives.hpp> #include <components/vfs/registerarchives.hpp>
@ -427,7 +427,7 @@ void OMW::Engine::createWindow(Settings::Manager& settings)
camera->setGraphicsContext(graphicsWindow); camera->setGraphicsContext(graphicsWindow);
camera->setViewport(0, 0, width, height); camera->setViewport(0, 0, width, height);
mViewer->setRealizeOperation(new EnableGLDebugOperation()); mViewer->setRealizeOperation(new Debug::EnableGLDebugOperation());
mViewer->realize(); mViewer->realize();

View file

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

View file

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