diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-28 21:03:04 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-28 21:03:04 +0300 |
commit | b6459105b47526cd33851d4e00740fbd9d050ea4 (patch) | |
tree | dedbd4c93fdb22f040f6740f2d13dc6dc4ce19ed /source/blender/gpu/intern/gpu_material.c | |
parent | 044f7c5f331209d6f274a7d73a411fbe15746ea3 (diff) |
OpenGL Render restored.
I tried to make it integrate more with regular render but couldn't
do it well, it still needs a 3D view to take the settings from, and
can't run in a separate thread due to OpenGL.
However, it is now rendering to an offscreen buffer which then gets
displayed in the image window. This requires FBO's to be available, so
a fallback creating a new window is still needed. Currently available
from the Render menu in the top header.
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 0dc17da93a1..0650a0bfa19 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -1509,6 +1509,7 @@ void GPU_lamp_shadow_buffer_bind(GPULamp *lamp, float viewmat[][4], int *winsize Mat4MulMat4(lamp->persmat, persmat, rangemat); /* opengl */ + glDisable(GL_SCISSOR_TEST); GPU_framebuffer_texture_bind(lamp->fb, lamp->tex); /* set matrices */ @@ -1521,6 +1522,7 @@ void GPU_lamp_shadow_buffer_unbind(GPULamp *lamp) { GPU_framebuffer_texture_unbind(lamp->fb, lamp->tex); GPU_framebuffer_restore(); + glEnable(GL_SCISSOR_TEST); } int GPU_lamp_shadow_layer(GPULamp *lamp) |