diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:36:13 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:49:14 +0300 |
commit | 71872e3809fda6a18f76e0a6e5cb6b268dcbf0fa (patch) | |
tree | 8950ed6203fbf6aa6f2d6ce46d99702fa1ddb317 /source/blender/gpu/intern/gpu_texture_private.hh | |
parent | 14926a81b622bd9d37a6d7f90747f431ae070e64 (diff) |
GLTexture: Add Feedback loop check
The check is better than before as we take into
consideration the attached mip level.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture_private.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_texture_private.hh b/source/blender/gpu/intern/gpu_texture_private.hh index de639d0c435..8f01d28e65e 100644 --- a/source/blender/gpu/intern/gpu_texture_private.hh +++ b/source/blender/gpu/intern/gpu_texture_private.hh @@ -91,11 +91,12 @@ class Texture { /** Number of mipmaps this texture has (Max miplvl). */ /* TODO(fclem) Should become immutable and the need for mipmaps should be specified upfront. */ int mipmaps_ = -1; + /** For error checking */ + int mip_min_ = 0, mip_max_ = 0; /** For debugging */ char name_[DEBUG_NAME_LEN]; - private: /** Framebuffer references to update on deletion. */ GPUAttachmentType fb_attachment_[GPU_TEX_MAX_FBO_ATTACHED]; FrameBuffer *fb_[GPU_TEX_MAX_FBO_ATTACHED]; |