mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +02:00
GLTextures store the source for easier debugging
This commit is contained in:
parent
d382305174
commit
ee476a6048
2 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,7 @@ float GLTexture::getMemoryPressure() {
|
||||||
// Create the texture and allocate storage
|
// Create the texture and allocate storage
|
||||||
GLTexture::GLTexture(const std::weak_ptr<GLBackend>& backend, const Texture& texture, GLuint id, bool transferrable) :
|
GLTexture::GLTexture(const std::weak_ptr<GLBackend>& backend, const Texture& texture, GLuint id, bool transferrable) :
|
||||||
GLObject(backend, texture, id),
|
GLObject(backend, texture, id),
|
||||||
|
_source(texture.source()),
|
||||||
_storageStamp(texture.getStamp()),
|
_storageStamp(texture.getStamp()),
|
||||||
_target(getGLTextureType(texture)),
|
_target(getGLTextureType(texture)),
|
||||||
_internalFormat(gl::GLTexelFormat::evalGLTexelFormatInternal(texture.getTexelFormat())),
|
_internalFormat(gl::GLTexelFormat::evalGLTexelFormatInternal(texture.getTexelFormat())),
|
||||||
|
|
|
@ -111,6 +111,7 @@ public:
|
||||||
~GLTexture();
|
~GLTexture();
|
||||||
|
|
||||||
const GLuint& _texture { _id };
|
const GLuint& _texture { _id };
|
||||||
|
const std::string _source;
|
||||||
const Stamp _storageStamp;
|
const Stamp _storageStamp;
|
||||||
const GLenum _target;
|
const GLenum _target;
|
||||||
const GLenum _internalFormat;
|
const GLenum _internalFormat;
|
||||||
|
|
Loading…
Reference in a new issue