mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 07:43:57 +02:00
FIxing warnigns
This commit is contained in:
parent
c182330b6e
commit
5a3896b1de
2 changed files with 4 additions and 10 deletions
|
@ -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);
|
||||
|
|
|
@ -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<Config>(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();
|
||||
|
|
Loading…
Reference in a new issue