diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:36:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:49:14 +0300 |
commit | 64490bdedb7291523df3c1cf633aee7a455e2e36 (patch) | |
tree | 50c72a4608e9bcc9e7b82493fc2d73800a6ca2b5 /source/blender/gpu/opengl/gl_texture.hh | |
parent | 558e1158e7b07e2a1b2fd239cd662282828990f0 (diff) |
GLTexture: Add direct state access support
Diffstat (limited to 'source/blender/gpu/opengl/gl_texture.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_texture.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_texture.hh b/source/blender/gpu/opengl/gl_texture.hh index c18949c264e..ef86d1b9e7e 100644 --- a/source/blender/gpu/opengl/gl_texture.hh +++ b/source/blender/gpu/opengl/gl_texture.hh @@ -89,6 +89,8 @@ class GLTexture : public Texture { private: bool proxy_check(int mip); void ensure_mipmaps(int mip); + void update_sub_direct_state_access( + int mip, int offset[3], int extent[3], GLenum gl_format, GLenum gl_type, const void *data); GPUFrameBuffer *framebuffer_get(void); MEM_CXX_CLASS_ALLOC_FUNCS("GLTexture") |