[Bf-blender-cvs] [e2471ea] master: Attempt to fix T43919, avoid using GPU_framebuffer_slots_bind just in case a system does not support drawing to many framebuffers.
Antony Riakiotakis
noreply at git.blender.org
Mon Mar 9 18:27:37 CET 2015
Commit: e2471ea96adcd4f0b183f684c19833258dd69b2d
Author: Antony Riakiotakis
Date: Mon Mar 9 18:27:27 2015 +0100
Branches: master
https://developer.blender.org/rBe2471ea96adcd4f0b183f684c19833258dd69b2d
Attempt to fix T43919, avoid using GPU_framebuffer_slots_bind just in
case a system does not support drawing to many framebuffers.
===================================================================
M source/blender/gpu/intern/gpu_extensions.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index f9bdaad..63f0bc3 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -1345,7 +1345,7 @@ void GPU_offscreen_bind(GPUOffScreen *ofs, bool save)
{
glDisable(GL_SCISSOR_TEST);
if (save)
- GPU_framebuffer_slots_bind(ofs->fb, 0);
+ GPU_texture_bind_as_framebuffer(ofs->color);
else {
GPU_framebuffer_bind_no_save(ofs->fb, 0);
}
More information about the Bf-blender-cvs
mailing list