From 5a3896b1de88d5934c12171f2e568031a6ebe055 Mon Sep 17 00:00:00 2001 From: samcake Date: Sun, 27 Mar 2016 09:35:13 -0700 Subject: [PATCH] FIxing warnigns --- libraries/gpu/src/gpu/GLBackend.h | 7 ++++--- libraries/render/src/render/EngineStats.cpp | 7 ------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/libraries/gpu/src/gpu/GLBackend.h b/libraries/gpu/src/gpu/GLBackend.h index c8e3be81d1..d4efe7fe99 100644 --- a/libraries/gpu/src/gpu/GLBackend.h +++ b/libraries/gpu/src/gpu/GLBackend.h @@ -74,19 +74,20 @@ public: static GLuint getBufferID(const Buffer& buffer); class GLTexture : public GPUObject { - GLuint _size; public: Stamp _storageStamp; Stamp _contentStamp; GLuint _texture; GLenum _target; + GLTexture(); + ~GLTexture(); void setSize(GLuint size); GLuint size() const { return _size; } - GLTexture(); - ~GLTexture(); + private: + GLuint _size; }; static GLTexture* syncGPUObject(const Texture& texture); static GLuint getTextureID(const TexturePointer& texture, bool sync = true); diff --git a/libraries/render/src/render/EngineStats.cpp b/libraries/render/src/render/EngineStats.cpp index 60cb309786..ee96e0cd86 100644 --- a/libraries/render/src/render/EngineStats.cpp +++ b/libraries/render/src/render/EngineStats.cpp @@ -20,16 +20,9 @@ void EngineStats::run(const SceneContextPointer& sceneContext, const RenderConte quint64 msecsElapsed = _frameTimer.restart(); double frequency = 1000.0 / msecsElapsed; - // Update the stats auto config = std::static_pointer_cast(renderContext->jobConfig); - quint32 textureCPUCount{ 0 }; - quint32 textureGPUCount{ 0 }; - qint64 textureCPUMemoryUsage{ 0 }; - qint64 textureGPUMemoryUsage{ 0 }; - - config->bufferCPUCount = gpu::Buffer::getBufferCPUCount(); config->bufferGPUCount = gpu::Buffer::getBufferGPUCount(); config->bufferCPUMemoryUsage = gpu::Buffer::getBufferCPUMemoryUsage();