diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-02 02:25:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:49:14 +0300 |
commit | a92d77acf715f5a775e99b575cc8cc5238b11557 (patch) | |
tree | 1361ba0795758d8989a5ed87762822a32a47845b /source/blender/gpu/intern/gpu_framebuffer.cc | |
parent | f72c1c4547e5fab769c22652d9872192029ad7fe (diff) |
GPUTexture: Add skeleton of the new GLTexture class
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.cc b/source/blender/gpu/intern/gpu_framebuffer.cc index 6af34a60ffb..bb17ee8edf4 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.cc +++ b/source/blender/gpu/intern/gpu_framebuffer.cc @@ -292,7 +292,8 @@ bool GPU_framebuffer_check_valid(GPUFrameBuffer *gpu_fb, char err_out[256]) void GPU_framebuffer_texture_attach_ex(GPUFrameBuffer *gpu_fb, GPUAttachment attachment, int slot) { - GPUAttachmentType type = blender::gpu::Texture::attachment_type(attachment.tex, slot); + Texture *tex = reinterpret_cast<Texture *>(attachment.tex); + GPUAttachmentType type = tex->attachment_type(slot); reinterpret_cast<FrameBuffer *>(gpu_fb)->attachment_set(type, attachment); } |